Skip to content

Commit 37f613b

Browse files
committed
8297676: DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders
Reviewed-by: azvegint, prr
1 parent 87f00f4 commit 37f613b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/java.desktop/share/classes/java/awt/image/DataBuffer.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -35,13 +35,13 @@
3535

3636
package java.awt.image;
3737

38-
import sun.java2d.StateTrackable.State;
39-
import static sun.java2d.StateTrackable.State.*;
40-
import sun.java2d.StateTrackableDelegate;
38+
import java.lang.annotation.Native;
4139

4240
import sun.awt.image.SunWritableRaster;
41+
import sun.java2d.StateTrackable.State;
42+
import sun.java2d.StateTrackableDelegate;
4343

44-
import java.lang.annotation.Native;
44+
import static sun.java2d.StateTrackable.State.UNTRACKABLE;
4545

4646
/**
4747
* This class exists to wrap one or more data arrays. Each data array in
@@ -75,16 +75,16 @@ public abstract class DataBuffer {
7575
/** Tag for unsigned short data. */
7676
@Native public static final int TYPE_USHORT = 1;
7777

78-
/** Tag for signed short data. Placeholder for future use. */
78+
/** Tag for signed short data. */
7979
@Native public static final int TYPE_SHORT = 2;
8080

8181
/** Tag for int data. */
8282
@Native public static final int TYPE_INT = 3;
8383

84-
/** Tag for float data. Placeholder for future use. */
84+
/** Tag for float data. */
8585
@Native public static final int TYPE_FLOAT = 4;
8686

87-
/** Tag for double data. Placeholder for future use. */
87+
/** Tag for double data. */
8888
@Native public static final int TYPE_DOUBLE = 5;
8989

9090
/** Tag for undefined data. */

0 commit comments

Comments
 (0)