Skip to content

Commit 5417e82

Browse files
committed
Clean up code style and copyright notices
1 parent 80ea755 commit 5417e82

File tree

13 files changed

+88
-19
lines changed

13 files changed

+88
-19
lines changed

core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AspectModelAasGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import java.util.List;
1919
import java.util.function.Function;
2020
import java.util.stream.Stream;
21-
2221
import javax.annotation.Nullable;
2322

2423
import org.eclipse.esmf.aspectmodel.generator.AspectGenerator;

core/esmf-aspect-model-aas-generator/src/test/java/org/eclipse/esmf/aspectmodel/aas/AspectModelAasGeneratorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.nio.charset.StandardCharsets;
2222
import java.util.List;
2323
import java.util.Set;
24-
2524
import javax.xml.XMLConstants;
2625
import javax.xml.transform.stream.StreamSource;
2726
import javax.xml.validation.Schema;

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/diagram/DiagramArtifact.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator.diagram;

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/diagram/DiagramGenerationConfig.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator.diagram;

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/zip/NamespacePackageArtifact.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator.zip;

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/zip/NamespacePackageGenerationConfig.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator.zip;

core/esmf-aspect-model-document-generators/src/test/java/org/eclipse/esmf/aspectmodel/generator/json/AspectModelJsonPayloadGeneratorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,9 @@ private Pair<Number, Number> generateRandomRangeForType( final Type dataType, fi
847847
* as the first item in the generated sequence.
848848
*/
849849
private static class MinValueRandomStrategy extends Random {
850+
@Serial
851+
private static final long serialVersionUID = 4032598470646521142L;
852+
850853
@Override
851854
public IntStream ints( final long streamSize, final int randomNumberOrigin, final int randomNumberBound ) {
852855
return IntStream.concat( IntStream.of( randomNumberOrigin ),
@@ -864,16 +867,16 @@ public DoubleStream doubles( final long streamSize, final double randomNumberOri
864867
return DoubleStream.concat( DoubleStream.of( randomNumberOrigin ),
865868
super.doubles( streamSize, randomNumberOrigin, randomNumberBound ).skip( 1 ) );
866869
}
867-
868-
@Serial
869-
private static final long serialVersionUID = 4032598470646521142L;
870870
}
871871

872872
/**
873873
* Special version of the random number generator that always starts with the upperBound
874874
* as the first item in the generated sequence.
875875
*/
876876
private static class MaxValueRandomStrategy extends Random {
877+
@Serial
878+
private static final long serialVersionUID = -4713706160081659886L;
879+
877880
@Override
878881
public IntStream ints( final long streamSize, final int randomNumberOrigin, final int randomNumberBound ) {
879882
return IntStream.concat( IntStream.of( randomNumberBound ),
@@ -891,8 +894,5 @@ public DoubleStream doubles( final long streamSize, final double randomNumberOri
891894
return DoubleStream.concat( DoubleStream.of( randomNumberBound ),
892895
super.doubles( streamSize, randomNumberOrigin, randomNumberBound ).skip( 1 ) );
893896
}
894-
895-
@Serial
896-
private static final long serialVersionUID = -4713706160081659886L;
897897
}
898898
}

core/esmf-aspect-model-generator/src/main/java/org/eclipse/esmf/aspectmodel/generator/BinaryArtifact.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator;

core/esmf-aspect-model-generator/src/main/java/org/eclipse/esmf/aspectmodel/generator/Generator.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator;

core/esmf-aspect-model-generator/src/main/java/org/eclipse/esmf/aspectmodel/generator/StringArtifact.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* Copyright (c) 2024 Bosch Software Innovations GmbH. All rights reserved.
2+
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
312
*/
413

514
package org.eclipse.esmf.aspectmodel.generator;

0 commit comments

Comments
 (0)