bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private ColorChooserComponentFactory() { } // ColorChooserComponentFactory()
private ColorChooserComponentFactory() { } // ColorChooserComponentFactory()
7,514
public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(null); }
public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(null); }
7,515
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;}
7,517
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); return accessibleContext;}
7,518
public static FileSystemView getFileSystemView() { if (defaultFileSystemView == null) { if (File.separator.equals("/")) defaultFileSystemView = new UnixFileSystemView(); // FIXME: need to implement additional views // else if (File.Separator.equals("\")) // return new Win32FileSystem...
public static FileSystemView getFileSystemView() { if (defaultFileSystemView == null) { defaultFileSystemView = new UnixFileSystemView(); // FIXME: need to implement additional views // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // retur...
7,519
public static FileSystemView getFileSystemView() { if (defaultFileSystemView == null) { if (File.separator.equals("/")) defaultFileSystemView = new UnixFileSystemView(); // FIXME: need to implement additional views // else if (File.Separator.equals("\")) // return new Win32FileSystem...
public static FileSystemView getFileSystemView() { if (defaultFileSystemView == null) { if (File.separator.equals("/"))defaultFileSystemView = new UnixFileSystemView(); // FIXME: need to implement additional views // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else//...
7,520
public String getSystemDisplayName(File f) { return null; }
public String getSystemDisplayName(File f) { String name = null; if (f != null) name = f.getName(); return name; }
7,521
protected void fireConfigChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionConfigListener target = (SessionConfigListener)listeners.elementAt(i); target.onConfigChanged(sce); } } }
protected void fireConfigChanged(SessionConfigEvent sce) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionConfigListener target = (SessionConfigListener)listeners.elementAt(i); target.onConfigChanged(sce); ...
7,522
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
7,523
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
7,524
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); counter--; tag = "d...
7,525
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
public List getAxisTags() { List tags = new ArrayList(); String tag; String axisId; String tempTag; List axisList = getParentArray().getAxisList(); int counter = axisList.size(); for (int i = 0; i<axisList.size(); i++) { axisId = ((Axis)axisList.get(i)).getAxisId(); tag = "d" + counter...
7,526
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
7,527
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
7,528
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = super.sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; ...
7,529
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" int cp = screen52....
public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte) screen52.getRows()); // store the current size sc.write((byte) screen52.getColumns()); // "" int cp = screen5...
7,532
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel...
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel...
7,533
public void sendNegResponse2(int ec) { baosp.write(0x00); baosp.write(ec); try { writeGDS(1, 0, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } baosp.reset(); }
screen52.setPrehelpState(true); screen52.setPrehelpState(true); screen52.setPrehelpState(true); publicscreen52.setPrehelpState(true); voidscreen52.setPrehelpState(true); sendNegResponse2(intscreen52.setPrehelpState(true); ec)screen52.setPrehelpState(true); {screen52.setPrehelpState(true); screen52.setPrehelpState(true)...
7,535
private final void writeErrorCode() throws Exception { screen52.goto_XY(screen52.getErrorLine(),1); // Skip the control byte screen52.saveErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_ON,null); cursorOn = true; }
private final void writeErrorCode() throws Exception { screen52.goto_XY(screen52.getErrorLine(),1); // Skip the control byte screen52.saveErrorLine(); cursorOn = true; }
7,536
private final void writeErrorCodeToWindow() throws Exception { int fromCol = bk.getNextByte() & 0xff; // from column int toCol = bk.getNextByte() & 0xff; // to column screen52.goto_XY(screen52.getErrorLine(),fromCol); // Skip the control byte screen52.saveErrorLine(); screen52.setStatus(sc...
private final void writeErrorCodeToWindow() throws Exception { int fromCol = bk.getNextByte() & 0xff; // from column int toCol = bk.getNextByte() & 0xff; // to column screen52.goto_XY(screen52.getErrorLine(),fromCol); // Skip the control byte screen52.saveErrorLine(); cursorOn = true;...
7,537
public UnresolvedObjectRefException(String s) { super(s); }
public UnresolvedObjectRefException(String s) { super(s); }
7,538
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
7,539
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vend...
7,540
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
7,541
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
7,542
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
7,543
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
7,544
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
7,545
protected void windowInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create // Now we're done init stage, adds and layouts go to content pane. initStageDone = true; }
protected void windowInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create // Now we're done init stage, adds and layouts go to content pane. setRootPaneCheckingEnabled(true); }
7,546
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
7,549
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; fo...
7,550
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
7,552
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
7,553
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = (JInternalFrame)desktop.getSelectedFrame();// int index = desktop.getIndexOf(miv); int index = selectedIndex; if (index == 0) {// desktop.setSelectedFrame(frames[fram...
7,554
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index); this.repai...
public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); this.repaint(); }
7,556
private HashMap getEntries() throws IOException { synchronized(raf) { if (closed) throw new IllegalStateException("ZipFile has closed: " + name); if (entries == null) readEntries(); return entries; } }
private HashMap getEntries() throws IOException { synchronized(raf) { if (closed) throw new IllegalStateException("ZipFile has closed: " + name); if (entries == null) readEntries(); return entries; } }
7,557
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == lm1) { d = in.read(); doReset = true; ...
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == lm1) { d = in.read(); doReset = true; ...
7,559
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == lm1) { d = in.read(); doReset = true; ...
private int indexOfCRLF(byte[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == CR) { int d; if (i == em1) { d = in.read(); doReset = true; ...
7,560
public boolean action(Event evt, Object what) { // XXX Add backward compatibility handling. return false; }
publicbooleanaction(Eventevt,Objectwhat){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,561
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
7,562
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
7,563
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
7,564
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ...
7,565
public boolean gotFocus(Event evt, Object what) { // XXX Add backward compatibility handling. return false; }
publicbooleangotFocus(Eventevt,Objectwhat){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,566
public boolean keyDown(Event evt, int key) { // XXX Add backward compatibility handling. return false; }
publicbooleankeyDown(Eventevt,intkey){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,567
public boolean keyUp(Event evt, int key) { // XXX Add backward compatibility handling. return false; }
publicbooleankeyUp(Eventevt,intkey){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,568
public boolean lostFocus(Event evt, Object what) { // XXX Add backward compatibility handling. return false; }
publicbooleanlostFocus(Eventevt,Objectwhat){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,569
public boolean mouseDown(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseDown(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,570
public boolean mouseDrag(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseDrag(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,571
public boolean mouseEnter(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseEnter(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,572
public boolean mouseExit(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseExit(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,573
public boolean mouseMove(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseMove(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,574
public boolean mouseUp(Event evt, int x, int y) { // XXX Add backward compatibility handling. return false; }
publicbooleanmouseUp(Eventevt,intx,inty){ //XXXAddbackwardcompatibilityhandling. returnfalse; }
7,575
public void move(int x, int y) { int oldx = this.x; int oldy = this.y; if (this.x == x && this.y == y) return; invalidate (); this.x = x; this.y = y; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightwe...
public void move(int x, int y) { int oldx = this.x; int oldy = this.y; if (this.x == x && this.y == y) return; invalidate (); this.x = x; this.y = y; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightwe...
7,576
public void resize(int width, int height) { int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old...
public void resize(int width, int height) { int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old...
7,579
private void disconnectMe() { me.closeSession((Session)this.getContentPane()); }
private void disconnectMe() { Session s = (Session)getContentPane(); me.closeSession(s); }
7,581
public boolean containsSession(Session session) { return desktop.getIndexOf(session) >= 0; }
public boolean containsSession(Session session) { return getIndexOfSession(session) >= 0; }
7,582
public int getIndexOfSession(Session session) { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); int index = -1; for (int idx = 0; idx < frames.length; idx++) { if (frames[idx].getContentPane().equals(session)) { index = idx; return index; } ...
public int getIndexOfSession(Session session) { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); int index = -1; for (int idx = 0; idx < frames.length; idx++) { Session ses = (Session)frames[idx].getContentPane(); if (ses.equals(session)) { index = idx; ...
7,583
private void jbInit() throws Exception { desktop = new JDesktopPane(); setContentPane(desktop); // Install our custom desktop manager desktop.setDesktopManager(new MyDesktopMgr()); if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + tn5250jRelease + tn5250jVersion + tn5250jSu...
private void jbInit() throws Exception { desktop = new JDesktopPane(); // Install our custom desktop manager desktop.setDesktopManager(new MyDesktopMgr()); if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else s...
7,584
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,586
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,587
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,588
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,589
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,590
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,591
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,592
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
7,593
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
7,594
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
7,595
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
7,596
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
7,597
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
private void calculateDay(int[] fields, long day, boolean gregorian) { // the epoch is a Thursday. int weekday = (int)(day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year too big. int year = 1970 + (int...
7,598
private void cleanUpAfterRoll(int field, int delta) { switch (field) { case ERA: case YEAR: case MONTH: // check that day of month is still in correct range if (fields[DAY_OF_MONTH] > getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH] = getActualMaximum(DAY_OF_MONTH); isTimeSet ...
privatevoidcleanUpAfterRoll(intfield,intdelta){switch(field){caseERA:caseYEAR:caseMONTH: //checkthatdayofmonthisstillincorrectrange if(fields[DAY_OF_MONTH]>getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH]=getActualMaximum(DAY_OF_MONTH); isTimeSet=false; isSet[WEEK_OF_MONTH]=false; isSet[DAY_OF_WE...
7,599
private void cleanUpAfterRoll(int field, int delta) { switch (field) { case ERA: case YEAR: case MONTH: // check that day of month is still in correct range if (fields[DAY_OF_MONTH] > getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH] = getActualMaximum(DAY_OF_MONTH); isTimeSet ...
privatevoidcleanUpAfterRoll(intfield,intdelta){switch(field){caseERA:caseYEAR:caseMONTH: //checkthatdayofmonthisstillincorrectrange if(fields[DAY_OF_MONTH]>getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH]=getActualMaximum(DAY_OF_MONTH); isTimeSet=false; isSet[WEEK_OF_MONTH]=false; isSet[DAY_OF_WE...
7,600
private void cleanUpAfterRoll(int field, int delta) { switch (field) { case ERA: case YEAR: case MONTH: // check that day of month is still in correct range if (fields[DAY_OF_MONTH] > getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH] = getActualMaximum(DAY_OF_MONTH); isTimeSet ...
privatevoidcleanUpAfterRoll(intfield,intdelta){switch(field){caseERA:caseYEAR:caseMONTH: //checkthatdayofmonthisstillincorrectrange if(fields[DAY_OF_MONTH]>getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH]=getActualMaximum(DAY_OF_MONTH); isTimeSet=false; isSet[WEEK_OF_MONTH]=false; isSet[DAY_OF_WE...
7,601
private void cleanUpAfterRoll(int field, int delta) { switch (field) { case ERA: case YEAR: case MONTH: // check that day of month is still in correct range if (fields[DAY_OF_MONTH] > getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH] = getActualMaximum(DAY_OF_MONTH); isTimeSet ...
privatevoidcleanUpAfterRoll(intfield,intdelta){switch(field){caseERA:caseYEAR:caseMONTH: //checkthatdayofmonthisstillincorrectrange if(fields[DAY_OF_MONTH]>getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH]=getActualMaximum(DAY_OF_MONTH); isTimeSet=false; isSet[WEEK_OF_MONTH]=false; isSet[DAY_OF_WE...
7,602
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
7,603
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
7,604
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
protectedsynchronizedvoidcomputeFields(){ booleangregorian=(time>=gregorianCutover); TimeZonezone=getTimeZone(); fields[ZONE_OFFSET]=zone.getRawOffset(); longlocalTime=time+fields[ZONE_OFFSET];longday=localTime/(24*60*60*1000L); intmillisInDay=(int)(localTime%(24*60*60*1000L));if(millisInDay<0){ millisInDay+=(24...
7,605
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
7,606
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
7,607
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
protectedsynchronizedvoidcomputeTime(){ intera=isSet[ERA]?fields[ERA]:AD; intyear=isSet[YEAR]?fields[YEAR]:1970;if(isLenient()&&isSet[MONTH]){ intmonth=fields[MONTH]; year+=month/12; month%=12; if(month<0) { month+=12; year--; } fields[MONTH]=month; isSet[YEAR]=true; fields[YEAR]=year;} if(era==BC) year=1-year; i...
7,608
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
7,609
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (isLenient() && isSet[MONTH]) { int month = fields[MONTH]; year += month / 12; month %= 12; if (month < 0) { month += 12; year--; } fields[MONTH] = month; isSet[...
7,610
public boolean equals(Object o) { if (!(o instanceof GregorianCalendar)) return false; GregorianCalendar cal = (GregorianCalendar) o; return (cal.getTimeInMillis() == getTimeInMillis()); }
public boolean equals(Object o) { if (!(o instanceof GregorianCalendar)) return false; GregorianCalendar cal = (GregorianCalendar) o; return (cal.getTimeInMillis() == getTimeInMillis()); }
7,611
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,612
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,613
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,614
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,615
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,616
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ...
7,617
public int getActualMinimum(int field) { if (field == WEEK_OF_YEAR) { int min = getMinimalDaysInFirstWeek(); if (min == 0) return 1; if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); int year = fields[ERA] == AD ? fields[YEAR] : 1 - fields[YEAR]; int weekday = getWeekDay(year, min...
public int getActualMinimum(int field) { if (field == WEEK_OF_YEAR) { int min = getMinimalDaysInFirstWeek(); if (min == 0) return 1; if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); int year = fields[ERA] == AD ? fields[YEAR] : 1 - fields[YEAR]; int weekday = getWeekDay(year, min...
7,618
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
privateint[]getDayOfYear(intyear){if(isSet[MONTH]){ intdayOfYear; if(fields[MONTH]>FEBRUARY) { //ThemonthsafterFebruaryareregular: //9isanoffsetfoundbytryanderror. dayOfYear=(fields[MONTH]*(31+30+31+30+31)-9)/5; if(isLeapYear(year)) dayOfYear++; } else dayOfYear=31*fields[MONTH]; if(isSet[DAY_OF_MO...
7,619
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,620
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,621
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,622
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,623
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,624
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,625
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
private int[] getDayOfYear(int year) { if (isSet[MONTH]) { int dayOfYear; if (fields[MONTH] > FEBRUARY) { // The months after February are regular: // 9 is an offset found by try and error. dayOfYear = (fields[MONTH] * (31 + 30 + 31 + 30 + 31) - 9) / 5; if (isLeapYear(year)) dayOfYear++; ...
7,626