tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1406385 - /tomcat/trunk/java/org/apache/jasper/compiler/Mark.java
Date Tue, 06 Nov 2012 22:45:26 GMT
Author: markt
Date: Tue Nov  6 22:45:26 2012
New Revision: 1406385

URL: http://svn.apache.org/viewvc?rev=1406385&view=rev
Log:
Add Eclipse generate hashCode() to fix a warning

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/Mark.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Mark.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Mark.java?rev=1406385&r1=1406384&r2=1406385&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Mark.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Mark.java Tue Nov  6 22:45:26 2012
@@ -247,6 +247,20 @@ final class Mark {
         return false;
     }
 
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + col;
+        result = prime * result + cursor;
+        result = prime * result + fileId;
+        result = prime * result + line;
+        result = prime * result + ((reader == null) ? 0 : reader.hashCode());
+        return result;
+    }
+
+
     /**
      * Keep track of parser before parsing an included file.
      * This class keeps track of the parser before we switch to parsing an



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message