Fix more sonar issues in models: yaml to dao
[policy/models.git] / models-dao / src / test / java / org / onap / policy / models / dao / DummyReferenceEntity.java
index 044a63d..aad2aa5 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Nordix Foundation.
+ *  Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -116,6 +117,6 @@ public class DummyReferenceEntity extends PfConcept {
 
         final DummyReferenceEntity other = (DummyReferenceEntity) otherObj;
 
-        return  new Double(doubleValue).compareTo(new Double(other.doubleValue));
+        return Double.compare(doubleValue, other.doubleValue);
     }
 }