File tree Expand file tree Collapse file tree 2 files changed +23
-19
lines changed
src/main/java/info/ata4/bsplib/struct Expand file tree Collapse file tree 2 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 1
- package info .ata4 .bsplib .struct ;
2
-
3
- import info .ata4 .bsplib .vector .Vector3f ;
4
-
5
- public class DStaticPropV6VIN extends DStaticPropV5 implements DStaticPropVinScaling {
6
-
7
- public Vector3f scaling = new Vector3f (1 , 1 , 1 );
8
-
9
- @ Override
10
- public Vector3f getScaling () {
11
- return scaling ;
12
- }
13
-
14
- @ Override
15
- public void setScaling (Vector3f scaling ) {
16
- this .scaling = scaling ;
17
- }
18
- }
1
+ package info .ata4 .bsplib .struct ;
2
+
3
+ import info .ata4 .bsplib .vector .Vector3f ;
4
+
5
+ import java .util .Objects ;
6
+
7
+ public class DStaticPropV6VIN extends DStaticPropV5 implements DStaticPropVinScaling {
8
+
9
+ public Vector3f scaling = new Vector3f (1 , 1 , 1 );
10
+
11
+ @ Override
12
+ public Vector3f getScaling () {
13
+ return scaling ;
14
+ }
15
+
16
+ @ Override
17
+ public void setScaling (Vector3f scaling ) {
18
+ this .scaling = Objects .requireNonNull (scaling );
19
+ }
20
+ }
Original file line number Diff line number Diff line change 2
2
3
3
import info .ata4 .bsplib .vector .Vector3f ;
4
4
5
+ import java .util .Objects ;
6
+
5
7
public class DStaticPropV7VIN extends DStaticPropV6 implements DStaticPropVinScaling {
6
8
7
9
public Vector3f scaling = new Vector3f (1 , 1 , 1 );
@@ -13,6 +15,6 @@ public Vector3f getScaling() {
13
15
14
16
@ Override
15
17
public void setScaling (Vector3f scaling ) {
16
- this .scaling = scaling ;
18
+ this .scaling = Objects . requireNonNull ( scaling ) ;
17
19
}
18
20
}
You can’t perform that action at this time.
0 commit comments