File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/engineering/swat/watch/impl/mac Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -229,9 +229,10 @@ public Strings(String... strings) {
229229
230230 public CFArrayRef toCFArray () {
231231 if (closed ) {
232- throw new IllegalStateException ("Paths already deallocated" );
232+ throw new IllegalStateException ("Strings are already deallocated" );
233+ } else {
234+ return array ;
233235 }
234- return array ;
235236 }
236237
237238 private static CFStringRef [] createCFStrings (String [] pathsToWatch ) {
@@ -267,7 +268,7 @@ private static CFArrayRef createCFArray(CFStringRef[] strings) {
267268 @ Override
268269 public void close () {
269270 if (closed ) {
270- throw new IllegalStateException ("Paths already deallocated" );
271+ throw new IllegalStateException ("Strings are already deallocated" );
271272 } else {
272273 closed = true ;
273274 }
You can’t perform that action at this time.
0 commit comments