Normalized indentation.
This commit is contained in:
parent
86b16bd570
commit
30c886d95d
|
@ -41,7 +41,7 @@ public class PlugInUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void populateScope(JavaSourceAnalysisEngine engine, Collection<String> sources, List<String> libs) {
|
public static void populateScope(JavaSourceAnalysisEngine engine, Collection<String> sources, List<String> libs) {
|
||||||
if (null != libs ){
|
if (null != libs ) {
|
||||||
boolean foundLib = false;
|
boolean foundLib = false;
|
||||||
for (String lib : libs) {
|
for (String lib : libs) {
|
||||||
File libFile = new File(lib);
|
File libFile = new File(lib);
|
||||||
|
@ -75,9 +75,9 @@ public class PlugInUtil {
|
||||||
public static JavaSourceAnalysisEngine
|
public static JavaSourceAnalysisEngine
|
||||||
createECJJavaEngine(Collection<String> sources, List<String> libs, final String [] entryPoints) {
|
createECJJavaEngine(Collection<String> sources, List<String> libs, final String [] entryPoints) {
|
||||||
JavaSourceAnalysisEngine engine=null;
|
JavaSourceAnalysisEngine engine=null;
|
||||||
if(null == entryPoints){
|
if(null == entryPoints) {
|
||||||
engine = new ECJJavaSourceAnalysisEngine();
|
engine = new ECJJavaSourceAnalysisEngine();
|
||||||
}else{
|
} else {
|
||||||
engine = new ECJJavaSourceAnalysisEngine() {
|
engine = new ECJJavaSourceAnalysisEngine() {
|
||||||
@Override
|
@Override
|
||||||
protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {
|
protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {
|
||||||
|
|
|
@ -19,25 +19,25 @@ public class SSAInstructionKey {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode(){
|
public int hashCode() {
|
||||||
return key.hashCode();
|
return key.hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString(){
|
public String toString() {
|
||||||
if (null == key){
|
if (null == key) {
|
||||||
return "null (key)";
|
return "null (key)";
|
||||||
}else{
|
} else {
|
||||||
return key.toString();
|
return key.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Object obj){
|
public boolean equals(Object obj) {
|
||||||
if (null == obj){
|
if (null == obj) {
|
||||||
return false;
|
return false;
|
||||||
}else{
|
} else {
|
||||||
if (obj instanceof SSAInstructionKey){
|
if (obj instanceof SSAInstructionKey) {
|
||||||
return key == ((SSAInstructionKey) obj).key;
|
return key == ((SSAInstructionKey) obj).key;
|
||||||
}else{
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue