changeset 121:181ec2e88114

8077281: [Master] Findbugs warnings High Priority in DIO package Summary: Fixed errors Reviewed-by: alkonsta
author snazarki
date Wed, 08 Apr 2015 20:42:48 +0400
parents 203499b65f94
children eeb924bad166
files src/se/classes/com/oracle/dio/registry/RegistryList.java src/share/classes/com/oracle/dio/uart/impl/UARTImpl.java
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/registry/RegistryList.java	Wed Apr 08 18:58:34 2015 +0400
+++ b/src/se/classes/com/oracle/dio/registry/RegistryList.java	Wed Apr 08 20:42:48 2015 +0400
@@ -28,8 +28,9 @@
 import java.util.Vector;
 import java.util.Enumeration;
 import java.util.Arrays;
+import java.lang.Cloneable;
 
-public final class RegistryList {
+public final class RegistryList implements Cloneable {
     private final Vector data;
 
     public RegistryList() {
--- a/src/share/classes/com/oracle/dio/uart/impl/UARTImpl.java	Wed Apr 08 18:58:34 2015 +0400
+++ b/src/share/classes/com/oracle/dio/uart/impl/UARTImpl.java	Wed Apr 08 20:42:48 2015 +0400
@@ -655,7 +655,6 @@
             checkRead();
         }
 
-        synchronized(handle){
 
             if (dst == null){
                 throw new NullPointerException(
@@ -695,7 +694,6 @@
                 } // if !event thread
             } // if has Remaining
             ret = dst.position() - ret;
-        } // synch handle
         return ret==0?-1:ret;
     }