All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.adoptopenjdk.jitwatch.model.ParsedClasspath Maven / Gradle / Ivy

Go to download

A Maven plugin that scans the project artifact and its dependencies for methods that cannot be inlined by the JIT compiler. It uses the JarScan utility from the JITWatch project to do that. See https://github.com/AdoptOpenJDK/jitwatch .

There is a newer version: 1.1
Show newest version
/*
 * Copyright (c) 2013, 2014 Chris Newland.
 * Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
 * Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
 */
package org.adoptopenjdk.jitwatch.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ParsedClasspath
{
	private Set classLocationSet = new HashSet<>();
	
	public void clear()
	{
		classLocationSet.clear();
	}
	
	public void addClassLocation(String location)
	{
		classLocationSet.add(location);
	}
	
	public List getClassLocations()
	{
		List asList = new ArrayList(classLocationSet);
		
		Collections.sort(asList);
		
		return Collections.unmodifiableList(asList);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy