src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageMetadataFormat.java
Print this page
rev 9230 : imported patch 8033716
*** 80,90 ****
DATATYPE_INTEGER,
false,
"2",
"0", "255",
true, true);
! List resUnits = new ArrayList();
resUnits.add("0");
resUnits.add("1");
resUnits.add("2");
addAttribute("app0JFIF",
"resUnits",
--- 80,90 ----
DATATYPE_INTEGER,
false,
"2",
"0", "255",
true, true);
! List<String> resUnits = new ArrayList<>();
resUnits.add("0");
resUnits.add("1");
resUnits.add("2");
addAttribute("app0JFIF",
"resUnits",
*** 123,133 ****
addElement("JFIFthumbJPEG", "app0JFXX", CHILD_POLICY_SOME);
addElement("JFIFthumbPalette", "app0JFXX", CHILD_POLICY_EMPTY);
addElement("JFIFthumbRGB", "app0JFXX", CHILD_POLICY_EMPTY);
! List codes = new ArrayList();
codes.add("16"); // Hex 10
codes.add("17"); // Hex 11
codes.add("19"); // Hex 13
addAttribute("app0JFXX",
"extensionCode",
--- 123,133 ----
addElement("JFIFthumbJPEG", "app0JFXX", CHILD_POLICY_SOME);
addElement("JFIFthumbPalette", "app0JFXX", CHILD_POLICY_EMPTY);
addElement("JFIFthumbRGB", "app0JFXX", CHILD_POLICY_EMPTY);
! List<String> codes = new ArrayList<>();
codes.add("16"); // Hex 10
codes.add("17"); // Hex 11
codes.add("19"); // Hex 13
addAttribute("app0JFXX",
"extensionCode",
*** 190,200 ****
false,
"0",
"0", "65535",
true, true);
! List transforms = new ArrayList();
transforms.add("0");
transforms.add("1");
transforms.add("2");
addAttribute("app14Adobe",
"transform",
--- 190,200 ----
false,
"0",
"0", "65535",
true, true);
! List<String> transforms = new ArrayList<>();
transforms.add("0");
transforms.add("1");
transforms.add("2");
addAttribute("app14Adobe",
"transform",
*** 203,213 ****
null,
transforms);
addElement("componentSpec", "sof", CHILD_POLICY_EMPTY);
! List procs = new ArrayList();
procs.add("0");
procs.add("1");
procs.add("2");
addAttribute("sof",
"process",
--- 203,213 ----
null,
transforms);
addElement("componentSpec", "sof", CHILD_POLICY_EMPTY);
! List<String> procs = new ArrayList<>();
procs.add("0");
procs.add("1");
procs.add("2");
addAttribute("sof",
"process",
*** 232,242 ****
DATATYPE_INTEGER,
false,
null,
"0", "65535",
true, true);
! List comps = new ArrayList();
comps.add("1");
comps.add("2");
comps.add("3");
comps.add("4");
addAttribute("sof",
--- 232,242 ----
DATATYPE_INTEGER,
false,
null,
"0", "65535",
true, true);
! List<String> comps = new ArrayList<>();
comps.add("1");
comps.add("2");
comps.add("3");
comps.add("4");
addAttribute("sof",
*** 265,275 ****
DATATYPE_INTEGER,
true,
null,
"1", "255",
true, true);
! List tabids = new ArrayList();
tabids.add("0");
tabids.add("1");
tabids.add("2");
tabids.add("3");
addAttribute("componentSpec",
--- 265,275 ----
DATATYPE_INTEGER,
true,
null,
"1", "255",
true, true);
! List<String> tabids = new ArrayList<>();
tabids.add("0");
tabids.add("1");
tabids.add("2");
tabids.add("3");
addAttribute("componentSpec",