Kaydet (Commit) 44140757 authored tarafından Noel Grandin's avatar Noel Grandin

java:Non-synchronized method should not override a synchronized method

Change-Id: I46307828757ee1142747c14d2942515340083605
üst 0f2007b1
...@@ -142,7 +142,7 @@ final class CustomURLClassLoader extends URLClassLoader { ...@@ -142,7 +142,7 @@ final class CustomURLClassLoader extends URLClassLoader {
@Override @Override
protected Class<?> loadClass( String name, boolean resolve ) protected synchronized Class<?> loadClass( String name, boolean resolve )
throws ClassNotFoundException throws ClassNotFoundException
{ {
Class c = findLoadedClass( name ); Class c = findLoadedClass( name );
......
...@@ -206,12 +206,12 @@ public final class XInputStreamToInputStreamAdapter extends InputStream { ...@@ -206,12 +206,12 @@ public final class XInputStreamToInputStreamAdapter extends InputStream {
} }
@Override @Override
public void mark(int readlimit) { public synchronized void mark(int readlimit) {
// Not supported. // Not supported.
} }
@Override @Override
public void reset() throws IOException { public synchronized void reset() throws IOException {
// Not supported. // Not supported.
} }
} }
......
...@@ -307,7 +307,7 @@ public final class Loader { ...@@ -307,7 +307,7 @@ public final class Loader {
} }
@Override @Override
protected Class<?> loadClass( String name, boolean resolve ) protected synchronized Class<?> loadClass( String name, boolean resolve )
throws ClassNotFoundException throws ClassNotFoundException
{ {
Class c = findLoadedClass( name ); Class c = findLoadedClass( name );
......
...@@ -106,7 +106,7 @@ public class AccessibilityTreeModel ...@@ -106,7 +106,7 @@ public class AccessibilityTreeModel
the child and add the child to the canvas. the child and add the child to the canvas.
*/ */
@Override @Override
public Object getChild (Object aParent, int nIndex) public synchronized Object getChild (Object aParent, int nIndex)
{ {
AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChild (aParent, nIndex); AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChild (aParent, nIndex);
...@@ -119,17 +119,6 @@ public class AccessibilityTreeModel ...@@ -119,17 +119,6 @@ public class AccessibilityTreeModel
return aChild; return aChild;
} }
@Override
public Object getChildNoCreate (Object aParent, int nIndex)
{
AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChildNoCreate (aParent, nIndex);
return aChild;
}
/** Remove a node (and all children) from the tree model. /** Remove a node (and all children) from the tree model.
*/ */
private boolean removeChild (AccessibleTreeNode aNode) private boolean removeChild (AccessibleTreeNode aNode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment