diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/beanvalidation/MOXyValidationBenchmark.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/beanvalidation/MOXyValidationBenchmark.java index dc08847da3e..14806b7d849 100644 --- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/beanvalidation/MOXyValidationBenchmark.java +++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/beanvalidation/MOXyValidationBenchmark.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -103,7 +103,7 @@ public void tearDown() throws Exception { } private void prepareJAXB() throws Exception { - ctx = JAXBContextFactory.createContext(EMPLOYEES, new HashMap(){{put(JAXBContextProperties + ctx = JAXBContextFactory.createContext(EMPLOYEES, new HashMap<>(){{put(JAXBContextProperties .BEAN_VALIDATION_MODE, BeanValidationMode.CALLBACK);}}); mar = (JAXBMarshaller) ctx.createMarshaller(); mar.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAMetadataProcessingTests.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAMetadataProcessingTests.java index 796f7933ecf..585932705c2 100644 --- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAMetadataProcessingTests.java +++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAMetadataProcessingTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -41,7 +41,7 @@ public class JPAMetadataProcessingTests { private ServerSession session; - private Set entities; + private Set> entities; @Setup public void setup() { diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/channel_code/ChannelCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/channel_code/ChannelCodeContentType.java index 77dbf935bec..21f9cf6ace5 100644 --- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/channel_code/ChannelCodeContentType.java +++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/channel_code/ChannelCodeContentType.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -22,7 +22,6 @@ *

Java class for ChannelCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="ChannelCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/chip_code/ChipCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/chip_code/ChipCodeContentType.java
index 00129db101d..6a74cdb339f 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/chip_code/ChipCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/chip_code/ChipCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for ChipCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="ChipCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/core_component_types/BinaryObjectType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/core_component_types/BinaryObjectType.java
index 25f8a919993..f4316a0bd18 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/core_component_types/BinaryObjectType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/core_component_types/BinaryObjectType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -111,7 +111,7 @@ public byte[] getValue() {
      *     byte[]
      */
     public void setValue(byte[] value) {
-        this.value = ((byte[]) value);
+        this.value = value;
     }
 
     /**
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/country_identification_code/CountryIdentificationCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/country_identification_code/CountryIdentificationCodeContentType.java
index 0819abf8ecf..4062a997fb8 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/country_identification_code/CountryIdentificationCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/country_identification_code/CountryIdentificationCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -22,7 +22,6 @@
  * 

Java class for CountryIdentificationCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="CountryIdentificationCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/currency_code/CurrencyCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/currency_code/CurrencyCodeContentType.java
index 46a094abdec..1e53e59fae8 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/currency_code/CurrencyCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/currency_code/CurrencyCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -22,7 +22,6 @@
  * 

Java class for CurrencyCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="CurrencyCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/document_status_code/DocumentStatusCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/document_status_code/DocumentStatusCodeContentType.java
index 3ac7472d689..d4b3e31b8d7 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/document_status_code/DocumentStatusCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/document_status_code/DocumentStatusCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for DocumentStatusCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="DocumentStatusCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/latitude_direction_code/LatitudeDirectionCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/latitude_direction_code/LatitudeDirectionCodeContentType.java
index 57d0860602d..2c0f223cf7f 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/latitude_direction_code/LatitudeDirectionCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/latitude_direction_code/LatitudeDirectionCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for LatitudeDirectionCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="LatitudeDirectionCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/line_status_code/LineStatusCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/line_status_code/LineStatusCodeContentType.java
index b8df69a0301..b98f0db3fe5 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/line_status_code/LineStatusCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/line_status_code/LineStatusCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for LineStatusCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="LineStatusCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/longitude_direction_code/LongitudeDirectionCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/longitude_direction_code/LongitudeDirectionCodeContentType.java
index 1708fd26f31..914e6cc3cbf 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/longitude_direction_code/LongitudeDirectionCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/longitude_direction_code/LongitudeDirectionCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for LongitudeDirectionCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="LongitudeDirectionCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/operator_code/OperatorCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/operator_code/OperatorCodeContentType.java
index 12382a74f46..0f0266438a4 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/operator_code/OperatorCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/operator_code/OperatorCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for OperatorCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="OperatorCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/substitution_status_code/SubstitutionStatusCodeContentType.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/substitution_status_code/SubstitutionStatusCodeContentType.java
index 1681f9579d9..04fba9d3841 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/substitution_status_code/SubstitutionStatusCodeContentType.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/largexml/bigpo/substitution_status_code/SubstitutionStatusCodeContentType.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -23,7 +23,6 @@
  * 

Java class for SubstitutionStatusCodeContentType. * *

The following schema fragment specifies the expected content contained within this class. - *

*

  * <simpleType name="SubstitutionStatusCodeContentType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionBenchmark.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionBenchmark.java
index acdc8afd025..ea8f8f6c003 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionBenchmark.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionBenchmark.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -35,7 +35,7 @@
  *
  * Tests are ran in multi-threaded environment.
  *
- * @author Marcel Valovy 
+ * @author Marcel Valovy marcel.valovy@oracle.com
  */
 @State(Scope.Benchmark)
 public class ReflectionBenchmark {
diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionUtils.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionUtils.java
index ef7d639bea5..11e6f37527d 100644
--- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionUtils.java
+++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/ReflectionUtils.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -36,7 +36,7 @@ private ReflectionUtils() {
 
     /**
      * Retrieves declared fields.
-     * 

+ *

* If security is enabled, makes {@linkplain java.security.AccessController#doPrivileged(PrivilegedAction) * privileged calls}. * diff --git a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/SimpleConcurrentReflectionUtils.java b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/SimpleConcurrentReflectionUtils.java index 7330842db8e..4f18fc5d297 100644 --- a/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/SimpleConcurrentReflectionUtils.java +++ b/performance/eclipselink.perf.test/src/test/java/org/eclipse/persistence/testing/perf/reflection/SimpleConcurrentReflectionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -14,19 +14,9 @@ // Marcel Valovy - 2.6 - initial API and implementation package org.eclipse.persistence.testing.perf.reflection; -import java.lang.management.ManagementFactory; -import java.lang.management.ThreadMXBean; -import java.lang.ref.SoftReference; import java.lang.reflect.Field; -import java.lang.reflect.Method; import java.security.AccessController; import java.security.PrivilegedAction; -import java.util.ArrayList; -import java.util.Deque; -import java.util.Iterator; -import java.util.List; -import java.util.concurrent.ConcurrentLinkedDeque; -import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.ReentrantLock; /** @@ -40,7 +30,7 @@ public class SimpleConcurrentReflectionUtils { /** * Retrieves declared fields. - *

+ *

* If security is enabled, makes {@linkplain java.security.AccessController#doPrivileged(java.security.PrivilegedAction) * privileged calls}. *