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 {
@Override
protected Class<?> loadClass( String name, boolean resolve )
protected synchronized Class<?> loadClass( String name, boolean resolve )
throws ClassNotFoundException
{
Class c = findLoadedClass( name );
......
......@@ -206,12 +206,12 @@ public final class XInputStreamToInputStreamAdapter extends InputStream {
}
@Override
public void mark(int readlimit) {
public synchronized void mark(int readlimit) {
// Not supported.
}
@Override
public void reset() throws IOException {
public synchronized void reset() throws IOException {
// Not supported.
}
}
......
......@@ -307,7 +307,7 @@ public final class Loader {
}
@Override
protected Class<?> loadClass( String name, boolean resolve )
protected synchronized Class<?> loadClass( String name, boolean resolve )
throws ClassNotFoundException
{
Class c = findLoadedClass( name );
......
......@@ -106,7 +106,7 @@ public class AccessibilityTreeModel
the child and add the child to the canvas.
*/
@Override
public Object getChild (Object aParent, int nIndex)
public synchronized Object getChild (Object aParent, int nIndex)
{
AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChild (aParent, nIndex);
......@@ -119,17 +119,6 @@ public class AccessibilityTreeModel
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.
*/
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