Skip to content

Detecting code duplicates by crawling the Java standard library.

Notifications You must be signed in to change notification settings

fruffy/Sisyphus

Repository files navigation

507

For a detailed description of the project please see the project paper.

How to install (For now) Run ./install.sh
Add 507 Project into Eclipse/IntelliJ
Add javasymbolsolver-core, javasymbolsolver-model, javasymbolsolver-logic to Eclipse/IntelliJ
Run 507

Tracking locally modified Library Files:

  • Integrated changes
    javaparser/javaparser#882
  • CPSC_507/javasymbolsolver/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclaration.java
    Changed toReferenceType()
		List<com.github.javaparser.ast.type.Type> superClassTypeParameters = classOrInterfaceType.getTypeArguments()
				.get();
		for (com.github.javaparser.ast.type.Type type : superClassTypeParameters) {
			if (type.toString().equals(this.getWrappedNode().getNameAsString())) {
				superClassTypeParameters.remove(type);
			}
		}
		List<Type> solvedTypeParameters = superClassTypeParameters.stream()
				.map(ta -> JavaParserFacade.get(typeSolver).convert(ta, ta)).collect(Collectors.toList());
		return new ReferenceTypeImpl(ref.getCorrespondingDeclaration().asReferenceType(), solvedTypeParameters,
typeSolver);

About

Detecting code duplicates by crawling the Java standard library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published