rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
boolean tmp = ((loc == SwingConstants.NORTH) || (loc == SwingConstants.SOUTH) || (loc == -1));
boolean tmp = (loc == SwingConstants.NORTH) || (loc == SwingConstants.SOUTH) || (loc == -1);
protected void dragTo(Point position, Point origin) { int loc = areaOfClick(origParent, SwingUtilities.convertPoint(toolBar, position, origParent)); if (loc != -1) { dragWindow.setBorderColor(dockingBorderColor); dragWindow.setB...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
throws NotImplementedException
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
InputMap inputMap = (InputMap) SharedUIDefaults.get("ToolBar.ancestorInputMap"); SwingUtilities.replaceUIInputMap(toolBar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, inputMap); SwingUtilities.replaceUIActionMap(toolBar, getActionMap());
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
toolBar.addFocusListener(toolBarFocusListener);
if (toolBarFocusListener != null) { int count = toolBar.getComponentCount(); for (int i = 0; i < count; i++) toolBar.getComponent(i).addFocusListener(toolBarFocusListener); }
protected void installListeners() { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContListener = createTo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
throws NotImplementedException
protected void navigateFocusedComp(int direction) throws NotImplementedException { // FIXME: Implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
int count = toolBar.getComponentCount(); switch (direction) { case EAST: case SOUTH: if (focusedCompIndex >= 0 && focusedCompIndex < count) { int i = focusedCompIndex + 1; boolean focusRequested = false; while (i != focusedCompIndex && ! focusRequested) { if (i >= count) i = 0; Component comp = toolBar.getComponentAtI...
protected void navigateFocusedComp(int direction) throws NotImplementedException { // FIXME: Implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
throws NotImplementedException
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
SwingUtilities.replaceUIInputMap(toolBar, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(toolBar, null);
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
toolBar.removeFocusListener(toolBarFocusListener);
if (toolBarFocusListener != null) { int count = toolBar.getComponentCount(); for (int i = 0; i < count; i++) toolBar.getComponent(i).removeFocusListener(toolBarFocusListener);
protected void uninstallListeners() { toolBar.removeFocusListener(toolBarFocusListener); toolBarFocusListener = null; floatFrame.removeWindowListener(windowListener); windowListener = null; toolBar.removeContainerListener(toolBarContListener); toolBarContListener = null; toolBar.removeMouseMotio...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
}
protected void uninstallListeners() { toolBar.removeFocusListener(toolBarFocusListener); toolBarFocusListener = null; floatFrame.removeWindowListener(windowListener); windowListener = null; toolBar.removeContainerListener(toolBarContListener); toolBarContListener = null; toolBar.removeMouseMotio...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
throw new BAD_OPERATION("value not set");
{ BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; }
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind) );
if (!(xKind == TCKind._tk_alias && has._type().kind().value() == kind)) { BAD_OPERATION bad = new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind)); bad.minor = Minor.Any; throw bad; }
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
if (!( type().kind().value() == TCKind._tk_alias && has._type().kind().value() == kind ) ) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " stored " + typeNamer.nameIt(type()) );
if (!(type().kind().value() == TCKind._tk_alias && has._type().kind().value() == kind)) { BAD_OPERATION bad = new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " stored " + typeNamer.nameIt(type())); bad.minor = Minor.Any; throw bad; }
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
throw new BAD_OPERATION();
BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad;
public org.omg.CORBA.Object extract_Object() { try { return ((ObjectHolder) has).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
return new BAD_OPERATION("Value type expected");
BAD_OPERATION bad = new BAD_OPERATION("Value type expected"); bad.minor = Minor.Any; bad.initCause(ex); throw bad;
public Serializable extract_Value() throws BAD_OPERATION { try { if (has instanceof ValueBaseHolder) return ((ValueBaseHolder) has).value; else { // Normally, ValueBase holder must be an instance of the // ValueBaseHolder. Howe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
BoxedValueHelper helper; try { Class helperClass = Class.forName(ObjectCreator.toHelperName(a_type.id())); helper = (BoxedValueHelper) helperClass.newInstance(); } catch (Exception ex) { helper = null; } Object content = Vio.read(input, helper);
Object content = Vio.read(input, a_type.id());
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
m.minor = Minor.Any;
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
public void clear() {
public void clear() {
public void clear() { mainAttr.clear(); entries.clear(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
public Object clone() {
public Object clone() {
public Object clone() { return new Manifest(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
public boolean equals(Object o) { return (o instanceof Manifest) && (mainAttr.equals(((Manifest) o).mainAttr)) && (entries.equals(((Manifest) o).entries));
public boolean equals(Object o) { return (o instanceof Manifest) && (mainAttr.equals(((Manifest) o).mainAttr)) && (entries.equals(((Manifest) o).entries));
public boolean equals(Object o) { return (o instanceof Manifest) && (mainAttr.equals(((Manifest) o).mainAttr)) && (entries.equals(((Manifest) o).entries)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static String expect_header(String header, BufferedReader br) throws IOException {
private static String expect_header(String header, BufferedReader br) throws IOException {
private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (s == null) {
if (s == null) {
private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
public int hashCode() {
public int hashCode() {
public int hashCode() { return mainAttr.hashCode() ^ entries.hashCode(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1"));
public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1"));
public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try {
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try {
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} catch (IndexOutOfBoundsException iobe) {
} catch (IndexOutOfBoundsException iobe) {
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException {
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException {
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (s != null && (!s.equals(""))) {
while (s != null && (!s.equals(""))) {
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static String read_header_value(String s, BufferedReader br) throws IOException {
private static String read_header_value(String s, BufferedReader br) throws IOException {
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (try_next) {
while (try_next) {
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (br.read() == ' ') {
if (br.read() == ' ') {
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} else {
} else {
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void read_individual_sections(Map entries, BufferedReader br) throws IOException {
private static void read_individual_sections(Map entries, BufferedReader br) throws IOException {
private static void read_individual_sections(Map entries, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { Attributes attr = read_section_name(s, br, entries); read_attributes(attr, br); s = br.readLine(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (s != null && (!s.equals(""))) {
while (s != null && (!s.equals(""))) {
private static void read_individual_sections(Map entries, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { Attributes attr = read_section_name(s, br, entries); read_attributes(attr, br); s = br.readLine(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void read_main_section(Attributes attr, BufferedReader br) throws IOException {
private static void read_main_section(Attributes attr, BufferedReader br) throws IOException {
private static void read_main_section(Attributes attr, BufferedReader br) throws IOException { // According to the spec we should actually call read_version_info() here. read_attributes(attr, br); // Explicitly set Manifest-Version attribute if not set in Main // attributes of Manifest. if (attr.getValue(Attribut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static Attributes read_section_name(String s, BufferedReader br, Map entries) throws JarException { try {
private static Attributes read_section_name(String s, BufferedReader br, Map entries) throws JarException { try {
private static Attributes read_section_name(String s, BufferedReader br, Map entries) throws JarException { try { String name = expect_header("Name", br, s); Attributes attr = new Attributes(); entries.put(name, attr); return attr; } catch (IOException ioe) { throw new JarException("Section should start wi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} catch (IOException ioe) { throw new JarException("Section should start with a Name header: " + ioe.getMessage());
} catch (IOException ioe) { throw new JarException ("Section should start with a Name header: " + ioe.getMessage());
private static Attributes read_section_name(String s, BufferedReader br, Map entries) throws JarException { try { String name = expect_header("Name", br, s); Attributes attr = new Attributes(); entries.put(name, attr); return attr; } catch (IOException ioe) { throw new JarException("Section should start wi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void read_version_info(Attributes attr, BufferedReader br) throws IOException {
private static void read_version_info(Attributes attr, BufferedReader br) throws IOException {
private static void read_version_info(Attributes attr, BufferedReader br) throws IOException { String version_header = Attributes.Name.MANIFEST_VERSION.toString(); try { String value = expect_header(version_header, br); attr.putValue(Attributes.Name.MANIFEST_VERSION, value); } catch (IOException ioe) { throw ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
try {
try {
private static void read_version_info(Attributes attr, BufferedReader br) throws IOException { String version_header = Attributes.Name.MANIFEST_VERSION.toString(); try { String value = expect_header(version_header, br); attr.putValue(Attributes.Name.MANIFEST_VERSION, value); } catch (IOException ioe) { throw ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} catch (IOException ioe) { throw new JarException("Manifest should start with a " + version_header + ": " + ioe.getMessage());
} catch (IOException ioe) { throw new JarException("Manifest should start with a " + version_header + ": " + ioe.getMessage());
private static void read_version_info(Attributes attr, BufferedReader br) throws IOException { String version_header = Attributes.Name.MANIFEST_VERSION.toString(); try { String value = expect_header(version_header, br); attr.putValue(Attributes.Name.MANIFEST_VERSION, value); } catch (IOException ioe) { throw ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException {
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException {
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException { String name = entry.getKey().toString(); String value = entry.getValue().toString(); if (name.equalsIgnoreCase("Name")) { throw new JarException("Attributes cannot be called 'Name'"); } if (name.startsWith("From")) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (name.equalsIgnoreCase("Name")) {
if (name.equalsIgnoreCase("Name")) {
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException { String name = entry.getKey().toString(); String value = entry.getValue().toString(); if (name.equalsIgnoreCase("Name")) { throw new JarException("Attributes cannot be called 'Name'"); } if (name.startsWith("From")) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (name.startsWith("From")) { throw new JarException("Header cannot start with the four letters 'From'" + name);
if (name.startsWith("From")) { throw new JarException("Header cannot start with the four letters 'From'" + name);
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException { String name = entry.getKey().toString(); String value = entry.getValue().toString(); if (name.equalsIgnoreCase("Name")) { throw new JarException("Attributes cannot be called 'Name'"); } if (name.startsWith("From")) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException {
private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException {
private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_attribute_entry(entry, pw); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (it.hasNext()) {
while (it.hasNext()) {
private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_attribute_entry(entry, pw); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_header(String name, String value, PrintWriter pw) {
private static void write_header(String name, String value, PrintWriter pw) {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (last > value.length()) {
if (last > value.length()) {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} else {
} else {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (last < value.length()) {
while (last < value.length()) {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (end > value.length()) {
if (end > value.length()) {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
} else {
} else {
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); int end = (last + 69); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException {
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException {
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { Iterator it = entries.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entry.getValue()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (it.hasNext()) {
while (it.hasNext()) {
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { Iterator it = entries.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entry.getValue()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException {
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException {
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); // Don't print the manifest version again if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getKey())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
while (it.hasNext()) {
while (it.hasNext()) {
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); // Don't print the manifest version again if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getKey())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getKey())) {
if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getKey())) {
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); // Don't print the manifest version again if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getKey())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException {
private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException {
private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException { write_version_info(attr, pw); write_main_attributes(attr, pw); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
private static void write_version_info(Attributes attr, PrintWriter pw) {
private static void write_version_info(Attributes attr, PrintWriter pw) {
private static void write_version_info(Attributes attr, PrintWriter pw) { // First check if there is already a version attribute set String version = attr.getValue(Attributes.Name.MANIFEST_VERSION); if (version == null) { version = "1.0"; } write_header(Attributes.Name.MANIFEST_VERSION.toString(), version, pw);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
if (version == null) {
if (version == null) {
private static void write_version_info(Attributes attr, PrintWriter pw) { // First check if there is already a version attribute set String version = attr.getValue(Attributes.Name.MANIFEST_VERSION); if (version == null) { version = "1.0"; } write_header(Attributes.Name.MANIFEST_VERSION.toString(), version, pw);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java
public InternalFrameAdapter() { }
public InternalFrameAdapter() { }
public InternalFrameAdapter() { } // InternalFrameAdapter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/InternalFrameAdapter.java/buggy/core/src/classpath/javax/javax/swing/event/InternalFrameAdapter.java
if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color);
Color col = getColor(); if (col == null) col = t.getSelectionColor(); g.setColor(col);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
SwingUtilities.computeIntersection(rect.x, rect.y, rect.width, rect.height, l1);
SwingUtilities.computeIntersection(rect.x, rect.y, rect.width, rect.height, l1);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
paintHighlight(g, l1);
g.fillRect(l1.x, l1.y, l1.width, l1.height);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
l0.x -= rect.x; l0.width = rect.width - l0.x - rect.x; paintHighlight(g, l0); int posBelow = Utilities.getPositionBelow(t, p0, l0.x); int p1RowStart = Utilities.getRowStart(t, p1); if (posBelow != -1 && posBelow != p0 && Utilities.getRowStart(t, posBelow) != p1RowStart) { Rectangle grow = ui.modelToView(t, posBelo...
int firstLineWidth = rect.x + rect.width - l0.x; g.fillRect(l0.x, l0.y, firstLineWidth, l0.height); if (l0.y + l0.height != l1.y) { g.fillRect(rect.x, l0.y + l0.height, rect.width, l1.y - l0.y - l0.height); } g.fillRect(rect.x, l1.y, l1.x - rect.x, l1.height);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
AssertionError err = new AssertionError("Unexpected bad location exception"); err.initCause(ex); throw err;
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
throw new InternalError();
Color col = getColor(); if (col == null) col = c.getSelectionColor(); g.setColor(col); Rectangle rect = null; if (p0 == view.getStartOffset() && p1 == view.getEndOffset()) { rect = bounds instanceof Rectangle ? (Rectangle) bounds : bounds.getBounds(); } else { try { Shape s = view.modelToView(p0, Position.Bias.Forwa...
public Shape paintLayer(Graphics g, int p0, int p1, Shape bounds, JTextComponent c, View view) { throw new InternalError(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
public HighlightEntry(int p0, int p1, Highlighter.HighlightPainter painter)
public HighlightEntry(Position p0, Position p1, Highlighter.HighlightPainter painter)
public HighlightEntry(int p0, int p1, Highlighter.HighlightPainter painter) { this.p0 = p0; this.p1 = p1; this.painter = painter; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
return p1;
return p1.getOffset();
public int getEndOffset() { return p1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
return p0;
return p0.getOffset();
public int getStartOffset() { return p0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter)
public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter)
public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = new HighlightEntry(p0, p1, painter); highlights.add(entry); textComponent.getUI().damageRange(textComponent, p0, p1); return entry; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
HighlightEntry entry = new HighlightEntry(p0, p1, painter);
HighlightEntry entry; Document doc = textComponent.getDocument(); Position pos0 = doc.createPosition(p0); Position pos1 = doc.createPosition(p1); if (getDrawsLayeredHighlights() && painter instanceof LayerPainter) entry = new LayerHighlightEntry(pos0, pos1, painter); else entry = new HighlightEntry(pos0, pos1, painter)...
public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = new HighlightEntry(p0, p1, painter); highlights.add(entry); textComponent.getUI().damageRange(textComponent, p0, p1); return entry; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; if (o0 == n0 && o1 == n1) return; entry.p0 = n0; entry.p1 = n1;
Document doc = textComponent.getDocument();
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
if (n0 == n1) ui.damageRange(textComponent, o0, o1); else if ((o1 > n0 && o1 <= n1) || (n1 > o0 && n1 <= o1))
if (tag instanceof LayerHighlightEntry) { LayerHighlightEntry le = (LayerHighlightEntry) tag; Rectangle r = le.paintRect; if (r.width > 0 && r.height > 0) textComponent.repaint(r.x, r.y, r.width, r.height); r.width = 0; r.height = 0; le.p0 = doc.createPosition(n0); le.p1 = doc.createPosition(n1); ui.damageRange(textCom...
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
int fds, sds; int fde, sde; if(o0 < n0)
HighlightEntry e = (HighlightEntry) tag; int p0 = e.getStartOffset(); int p1 = e.getEndOffset(); if (p0 == n0)
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
fds = o0; fde = n0;
ui.damageRange(textComponent, Math.min(p1, n1), Math.max(p1, n1));
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
else
else if (n1 == p1)
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
fds = n0; fde = o0; } if (o1 < n1) { sds = o1; sde = n1; } else { sds = n1; sde = o1; } if (fde == sds) ui.damageRange(textComponent, fds, sde); else { if (fds != fde) ui.damageRange(textComponent, fds, fde); if (sds != sde) ui.damageRange(textComponent, sds, sde); }
ui.damageRange(textComponent, Math.min(p0, n0), Math.max(p0, n0));
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
ui.damageRange(textComponent, o0, o1);
ui.damageRange(textComponent, p0, p1);
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
e.p0 = doc.createPosition(n0); e.p1 = doc.createPosition(n1); }
public void changeHighlight(Object tag, int n0, int n1) throws BadLocationException { int o0, o1; checkPositions(n0, n1); HighlightEntry entry = (HighlightEntry) tag; o0 = entry.p0; o1 = entry.p1; // Prevent useless write & repaint operations. if (o0 == n0 && o1 == n1) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
entry.painter.paint(g, entry.p0, entry.p1, bounds, textComponent);
if (! (entry instanceof LayerHighlightEntry)) entry.painter.paint(g, entry.getStartOffset(), entry.getEndOffset(), bounds, textComponent);
public void paint(Graphics g) { int size = highlights.size(); // Check if there are any highlights. if (size == 0) return; // Prepares the rectangle of the inner drawing area. Insets insets = textComponent.getInsets(); Shape bounds = new Rectangle(insets.left, i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
throws NotImplementedException
public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
for (Iterator i = highlights.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof LayerHighlightEntry) { LayerHighlightEntry entry = (LayerHighlightEntry) o; int start = entry.getStartOffset(); int end = entry.getEndOffset(); if ((p0 < start && p1 > start) || (p0 >= start && p0 < end)) entry.paintLayeredHi...
public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
int minX = 0; int maxX = 0; int minY = 0; int maxY = 0; int p0 = -1; int p1 = -1; for (Iterator i = highlights.iterator(); i.hasNext();) { HighlightEntry e = (HighlightEntry) i.next(); if (e instanceof LayerHighlightEntry) { LayerHighlightEntry le = (LayerHighlightEntry) e; Rectangle r = le.paintRect; minX = Math.min(...
public void removeAllHighlights() { highlights.clear(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
HighlightEntry entry = (HighlightEntry) tag; textComponent.getUI().damageRange(textComponent, entry.p0, entry.p1);
public void removeHighlight(Object tag) { highlights.remove(tag); HighlightEntry entry = (HighlightEntry) tag; textComponent.getUI().damageRange(textComponent, entry.p0, entry.p1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
log.debug("paint from screen");
protected void paintComponent(Graphics g) { log.debug("paint from screen"); if (bi == null) { checkOffScreenImage(); }// screen.paintComponent3(g); Graphics2D g2 = (Graphics2D) g; // Rectangle r = g.getClipBounds(); g2.setColor(bi.colorBg); g2.fillRect(0, 0, getWidth(), getHeight()); bi...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
repaint();
screen.repaintScreen();
public void resizeMe() {// screen.setBounds(getDrawingBounds()); //this is from screen5250 screen.setCursorActive(false); Rectangle r = getDrawingBounds(); if (bi != null) bi.resizeScreenArea(r.width, r.height); repaint();// screen.repaintScreen(); screen.setCursorActive(true); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
{ return new BasicPanelUI(); }
{ return new BasicPanelUI(); }
public static ComponentUI createUI(JComponent x) { return new BasicPanelUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicPanelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPanelUI.java
}
}
public void installDefaults(JPanel p) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setBackground(defaults.getColor("Panel.background")); p.setOpaque(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicPanelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPanelUI.java
{ super.installUI(c);
{ super.installUI(c);
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JPanel) { JPanel p = (JPanel) c; installDefaults(p); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicPanelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPanelUI.java
pattern = applyLocalizedPattern (pattern, localChars, standardChars);
pattern = translateLocalizedPattern(pattern, localChars, standardChars);
public void applyLocalizedPattern(String pattern) { String localChars = formatData.getLocalPatternChars(); pattern = applyLocalizedPattern (pattern, localChars, standardChars); applyPattern(pattern); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
FieldSizePair current = null;
CompiledField current = null;
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
field = formatData.getLocalPatternChars().indexOf(thisChar);
field = standardChars.indexOf(thisChar);
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
tokens.add(new FieldSizePair(-1,0));
throw new IllegalArgumentException("Invalid letter " + thisChar + "encountered at character " + i + ".");
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
tokens.add(new FieldSizePair(-1,0));
throw new IllegalArgumentException("Quotes starting at character " + i + " not closed.");
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
current = new FieldSizePair(field,1);
current = new CompiledField(field,1,thisChar);
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
if (o instanceof FieldSizePair)
if (o instanceof CompiledField)
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
FieldSizePair p = (FieldSizePair) o;
CompiledField cf = (CompiledField) o;
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
switch (p.field)
switch (cf.getField())
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
if (p.size == 2)
if (cf.getSize() == 2)
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java