classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: fix || expressions in jdwp code


From: Anthony Green
Subject: [cp-patches] Patch: fix || expressions in jdwp code
Date: Wed, 14 Sep 2005 17:49:54 -0700

These | operators should have been ||.  Ok?

AG



2005-09-14  Anthony Green  <address@hidden>

        * gnu/classpath/jdwp/event/filters/StepFilter.java (StepFilter):
        Short circuit this conditional.
        * gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java
        (ThreadOnlyFilter): Ditto.


Index: gnu/classpath/jdwp/event/filters/StepFilter.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/classpath/jdwp/event/filters/StepFilter.java,v
retrieving revision 1.1
diff -u -r1.1 StepFilter.java
--- gnu/classpath/jdwp/event/filters/StepFilter.java    26 Aug 2005 21:52:28 
-0000      1.1
+++ gnu/classpath/jdwp/event/filters/StepFilter.java    15 Sep 2005 00:23:45 
-0000
@@ -66,7 +66,7 @@
   public StepFilter (ThreadId tid, int size, int depth)
     throws InvalidThreadException
   {
-    if (tid == null | tid.getReference().get () == null)
+    if (tid == null || tid.getReference().get () == null)
       throw new InvalidThreadException (tid.getId ());
 
     _tid = tid;
Index: gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java,v
retrieving revision 1.1
diff -u -r1.1 ThreadOnlyFilter.java
--- gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java      26 Aug 2005 
21:52:28 -0000      1.1
+++ gnu/classpath/jdwp/event/filters/ThreadOnlyFilter.java      15 Sep 2005 
00:23:45 -0000
@@ -66,7 +66,7 @@
   public ThreadOnlyFilter (ThreadId tid)
     throws InvalidThreadException
   {
-    if (tid == null | tid.getReference().get () == null)
+    if (tid == null || tid.getReference().get () == null)
       throw new InvalidThreadException (tid.getId ());
 
     _tid = tid;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]