diff --git a/Apply spotless.launch b/Apply spotless.launch new file mode 100644 index 00000000..374c84b1 --- /dev/null +++ b/Apply spotless.launch @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.ibm.wala.cast.python.ml/run.sh b/com.ibm.wala.cast.python.ml/run.sh index bcd9476c..f42e8e77 100755 --- a/com.ibm.wala.cast.python.ml/run.sh +++ b/com.ibm.wala.cast.python.ml/run.sh @@ -3,4 +3,4 @@ ME=`realpath $0` DIR=`dirname $ME` -cat -u | tee -a /tmp/lsp.in.log | $JAVA_HOME/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:6660,server=y,suspend=n -jar $DIR/target/com.ibm.wala.cast.python.ml-0.6.0-SNAPSHOT.jar --mode stdio | tee -a /tmp/lsp.out.log +cat -u | tee -a /tmp/lsp.in.log | $JAVA_HOME/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:6660,server=y,suspend=n -jar $DIR/target/com.ibm.wala.cast.python.ml-0.38.0-SNAPSHOT.jar --mode stdio | tee -a /tmp/lsp.out.log diff --git a/com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/util/Util.java b/com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/util/Util.java index 233fc038..4af60a1b 100644 --- a/com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/util/Util.java +++ b/com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/util/Util.java @@ -107,6 +107,7 @@ public static String removeFileProtocolFromPath(String path) { * presented in the CAst. */ public static Collection getNames(Collection annotations) { + if (annotations == null) return emptyList(); return annotations.stream().map(Util::getName).flatMap(Optional::stream).toList(); }