Skip to content

Commit

Permalink
removed unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aakgna committed Jan 23, 2024
1 parent b489343 commit a38c5b7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ public String toString() {
}

public String toJson() {
// StringBuilder result = new StringBuilder();
HashMap<String, Object> res = new HashMap<>();
HashMap<String, ArrayList<String>> loaders = new HashMap<>();
for (ClassLoaderReference loader : loadersByName.values()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public void testPrimordial()
if (useShortProfile()) {
return;
}

AnalysisScope scope =
CallGraphTestUtil.makeJ2SEAnalysisScope(
"primordial.txt",
Expand Down Expand Up @@ -680,4 +680,4 @@ public boolean hasEdge(MethodReference src, MethodReference dst) {
}
};
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.ibm.wala.core.tests.cha;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;

Expand All @@ -19,24 +18,8 @@
import java.nio.file.Paths;
import org.junit.jupiter.api.Test;

import com.google.gson.Gson;

public class AnalysisScopeTest {

@Test
public void toJsonTest() throws IOException {
AnalysisScope scope =
AnalysisScopeReader.instance.readJavaScope(
TestConstants.WALA_TESTDATA,
// new FileProvider().getFile("J2SEClassHierarchyExclusions.txt"),
new FileProvider().getFile("GUIExclusions.txt"),
AnalysisScopeTest.class.getClassLoader());
Gson gson = new Gson();
String exp = gson.toJson("scope.toString()");
System.out.println(scope.toJson());
assertEquals(exp, scope.toJson());
}

@Test
public void testJarInputStream() throws IOException, ClassHierarchyException {
AnalysisScope scope =
Expand Down Expand Up @@ -72,4 +55,4 @@ public void testBaseScope() throws IOException, ClassHierarchyException {
ClassLoaderReference.Application, "Ljava/awt/AlphaComposite")),
"found unexpected class");
}
}
}
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=f2b9ed0faf8472cbe469255ae6c86eddb77076c75191741b4a462f33128dd419
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionSha256Sum=c16d517b50dd28b3f5838f0e844b7520b8f1eb610f2f29de7e4e04a1b7c9c79b
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
14 changes: 7 additions & 7 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -202,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
Expand Down
35 changes: 0 additions & 35 deletions z-out.java

This file was deleted.

0 comments on commit a38c5b7

Please sign in to comment.