Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fruffy/sisyphus

Detecting code duplicates by crawling the Java standard library.
https://github.com/fruffy/sisyphus

clone java-8 javaparser jgrapht

Last synced: 39 minutes ago
JSON representation

Detecting code duplicates by crawling the Java standard library.

Awesome Lists containing this project

README

        

# 507

For a detailed description of the project please see the [project paper](Sisyphus_ProjectPaper.pdf).

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