This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new b9c0c50 WatchThread: make older Java compiler happy
b9c0c50 is described below
commit b9c0c5034374f662058ea4554fb0098dc6a5bb82
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Mar 31 10:15:27 2022 -0700
WatchThread: make older Java compiler happy
---
.../org/apache/royale/compiler/internal/watcher/WatchThread.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/watcher/WatchThread.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/watcher/WatchThread.java
index 3ba7bed..623d952 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/watcher/WatchThread.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/watcher/WatchThread.java
@@ -121,9 +121,9 @@ public class WatchThread extends Thread
{
try
{
- watchKeys = new HashMap<>();
+ watchKeys = new HashMap<WatchKey, Path>();
watchService =
FileSystems.getDefault().newWatchService();
- Set<Path> watchedPaths = new HashSet<>();
+ Set<Path> watchedPaths = new HashSet<Path>();
for (String sourcePath : config.getCompilerSourcePath())
{
sourcePath =
FilenameNormalization.normalize(sourcePath);
@@ -160,7 +160,7 @@ public class WatchThread extends Thread
// for better performance
WatchKey watchKey = watchService.take();
- Set<ICompilationUnit> changedCUs = new HashSet<>();
+ Set<ICompilationUnit> changedCUs = new
HashSet<ICompilationUnit>();
while (watchKey != null)
{
processWatchKey(watchKey, changedCUs);