rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
protected abstract URLConnection openConnection(URL u) throws IOException; | protected abstract URLConnection openConnection(URL url) throws IOException; | protected abstract URLConnection openConnection(URL u) throws IOException; |
if (spec.regionMatches(start, " | if (spec.regionMatches(start, " { String genuineHost; | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... |
host = spec.substring(start, hostEnd); | authority = host = spec.substring(start, hostEnd); if ((at_host = host.indexOf('@')) >= 0) { genuineHost = host.substring(at_host); userInfo = host.substring(0, at_host); } else genuineHost = host; | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... |
if ((colon = host.indexOf(':')) >= 0) { try { port = Integer.parseInt(host.substring(colon + 1)); } catch (NumberFormatException e) { | if ((colon = genuineHost.indexOf(':')) >= 0) { try { port = Integer.parseInt(genuineHost.substring(colon + 1)); } catch (NumberFormatException e) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... |
file = file.substring(0, file.lastIndexOf('/')) + '/' + spec.substring(start, end); | int lastSlash = file.lastIndexOf('/'); if (lastSlash < 0) file = spec.substring(start, end); else file = (file.substring(0, lastSlash) + '/' + spec.substring(start, end)); file = canonicalizeFilename(file); | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... |
setURL(url, url.getProtocol(), host, port, file, ref); | setURL(url, url.getProtocol(), host, port, authority, userInfo, file, query, ref); | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... |
if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) | if (url1 == null || url2 == null) return false; int p1 = url1.getPort(); if (p1 == -1) p1 = url1.ph.getDefaultPort(); int p2 = url2.getPort(); if (p2 == -1) p2 = url2.ph.getDefaultPort(); if (p1 != p2) | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... |
String s1, s2; | String s1; String s2; | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... |
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; | protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... |
protocol = u.getProtocol(); | protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... |
host = u.getHost(); if (host == null) host = ""; port = u.getPort(); file = u.getFile(); ref = u.getRef(); | file = url.getFile(); ref = url.getRef(); | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... |
int size = protocol.length() + host.length() + file.length() + 24; | int size = protocol.length() + authority.length() + file.length() + 24; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... |
if (host.length() != 0) sb.append(" boolean port_needed = port > 0 && port != getDefaultPort(); if (port_needed) sb.append(':').append(port); | if (authority.length() != 0) { sb.append(" } | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("if"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); } |
addInternalFrameListener(this); | public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame;// setFocusCycleRoot(true);// final KeyboardFocusManager manager = KeyboardFocusManager// .getCurrentKeyboardFocusManager();// setFocusTraversalPolicy(manager.getDefaultFocusTraversalPolicy()); addInte... | |
if (!"tr".equalsIgnoreCase(ctx.getLocalName())) | String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(name)) | Node getRow(final int index) { int i = 0; for (Node ctx = getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { continue; } if (index == i) { return ctx; } i++; ... |
ActionMapUIResource am = new ActionMapUIResource(); am.put("press", new DefaultPressAction(rp)); am.put("release", new DefaultReleaseAction(rp)); SwingUtilities.replaceUIActionMap(rp, am); ComponentInputMapUIResource im = new ComponentInputMapUIResource(rp); SwingUtilities.replaceUIInputMap(rp, JComponent.WHEN_IN_... | protected void installKeyboardActions(JRootPane rp) { // We currently do not install any keyboard actions here. // This method is here anyway for compatibility and to provide // the necessary hooks to subclasses. } | |
JRootPane source = (JRootPane) event.getSource(); String propertyName = event.getPropertyName(); if (propertyName.equals("defaultButton")) { Object newValue = event.getNewValue(); InputMap im = SwingUtilities.getUIInputMap(source, JComponent.WHEN_IN_FOCUSED_WINDOW); if (newValue != null) { Object[] keybindings = (Objec... | public void propertyChange(PropertyChangeEvent event) { // TODO: Implement this properly. } | |
SwingUtilities.replaceUIActionMap(rp, null); SwingUtilities.replaceUIInputMap(rp, JComponent.WHEN_IN_FOCUSED_WINDOW, null); | protected void uninstallKeyboardActions(JRootPane rp) { // We do nothing here. } | |
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } | new MkdirCommand().execute(new CommandLine(args), System.in, System.out, System.err); | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } ... |
subElements[i] = (MenuElement) getMenu(i); | { menu = getMenu(i); if (menu != null) { subElements[j++] = (MenuElement) menu; } else doResize = true; } | public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) subElements[i] = (MenuElement) getMenu(i); return subElements; } |
else { MenuElement[] subElements2 = new MenuElement[j]; for (int i = 0; i < j; i++) subElements2[i] = subElements[i]; return subElements2; } | public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) subElements[i] = (MenuElement) getMenu(i); return subElements; } | |
if (menuElement == null) return false; | static boolean processKeyBindingHelper(MenuElement menuElement, KeyStroke ks, KeyEvent e, int condition, boolean pressed) { // First check the menuElement itself, if it's a JComponent if (menuElement instanceof JComponent &&... | |
}; | } else { gnuAny r = new gnuAny(); r.insert_Streamable(new streamReadyHolder(in)); } | public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr... |
if (font == null) { throw new IllegalArgumentException("font cannot be null"); } if (fontData == null) { throw new IllegalArgumentException("fontData cannot be null"); } | public TTFFontMetrics(Font font, TTFFontData fontData) throws IOException { super(font); this.fontData = fontData; this.scale = font.getSize() / fontData.getHorizontalHeaderTable().getAscent(); } | |
int newIdx = insertIndexForLayer(layer.intValue (), -1); | int newIdx = insertIndexForLayer(layer.intValue (), index); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... |
validate(); | revalidate(); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... |
validate(); | revalidate(); | public void setPosition(Component c, int position) { Integer layer = getLayer (c); int[] range = layerToRange (layer); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = top +... |
iter = null; | public LineBreakIterator () { iter = null; } | |
changeState(ARMED, a); | if ((a && isArmed()) || (!a && !isArmed())) return; if (!isEnabled()) return; if (a) stateMask = stateMask | ARMED; else stateMask = stateMask & (~ARMED); fireStateChanged(); | public void setArmed(boolean a) { changeState(ARMED, a); } |
changeState(ENABLED, e); | if ((e && isEnabled()) || (!e && !isEnabled())) return; if (e) stateMask = stateMask | ENABLED; else stateMask = stateMask & (~ENABLED); fireStateChanged(); | public void setEnabled(boolean e) { changeState(ENABLED, e); } |
changeState(PRESSED, p); | if ((p && isPressed()) || (!p && !isPressed())) return; if (!isEnabled()) return; if (p) stateMask = stateMask | PRESSED; else stateMask = stateMask & (~PRESSED); if (!p && isArmed()) fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand)); fireStateChanged(); | public void setPressed(boolean p) { changeState(PRESSED, p); } |
changeState(ROLLOVER, r); | if ((r && isRollover()) || (!r && !isRollover())) return; if (!isEnabled()) return; if (r) stateMask = stateMask | ROLLOVER; else stateMask = stateMask & (~ROLLOVER); fireStateChanged(); | public void setRollover(boolean r) { changeState(ROLLOVER, r); } |
changeState(SELECTED, s); | if ((s && isSelected()) || (!s && !isSelected())) return; if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED); fireStateChanged(); if (s) { fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, null, ItemEvent.SELECTED)); if (group != null) group.setSelected(this, tr... | public void setSelected(boolean s) { changeState(SELECTED, s); } |
public void finalize () { unmapImpl(); } | public void finalize() throws Throwable { unmapImpl(); } | public void finalize () { unmapImpl(); } |
return null; | return new AccessibleJTree(); | public AccessibleContext getAccessibleContext() { return null; } |
return ((JViewport) getParent()).getWidth() > getPreferredSize().width; | return ((JViewport) getParent()).getHeight() > getPreferredSize().height; | public boolean getScrollableTracksViewportHeight() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; return false; } |
return ((JViewport) getParent()).getHeight() > getPreferredSize().height; | return ((JViewport) getParent()).getWidth() > getPreferredSize().width; | public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getHeight() > getPreferredSize().height; return false; } |
protected void send(DatagramPacket p) throws IOException { final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyLocalAddress() || (getDevice() != null)) ... | protected void send(DatagramPacket p) throws IOException { final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyLocalAddress() || (getDevice() != null)) ... | protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyL... |
protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.put(lport, socket); | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { Integer lport = new Integer(socket.getLocalPort()); if (lport.compareTo(zero) != 0 && sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { Integer ran; while (lport.compareTo(zero... | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.... |
} | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.... | |
protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } } |
} | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } } | |
public NamingContextExtHolder(NamingContextExt initialValue) | public NamingContextExtHolder() | public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; } |
value = initialValue; | public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; } | |
w = 6; h = 18; | public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ... | |
bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); | bi = new BufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); | public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ... |
FontProvider fm = (FontProvider) new BDFFontProvider(); | FontProvider fm = new BDFFontProvider(); | public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ... |
tr = fm.getTextRenderer(font); | TextRenderer tr = fm.getTextRenderer(font); | public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ... |
*/ | public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ... | |
return; | public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe... | |
if (version > 1) { | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ... | |
} | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ... | |
log.entering("JarVerifier", "start"); | log.entering(this.getClass().getName(), "start"); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
System.out.println("jar is not signed.--no signature files found."); | System.out.println(Messages.getString("JarVerifier.2")); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
System.out.println("jar verification failed."); | System.out.println(Messages.getString("JarVerifier.3")); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
System.out.println("jar partially verified --" + count + " of " + limit + " signers."); | System.out.println(Messages.getFormattedString("JarVerifier.4", new Integer[] {Integer.valueOf(count), Integer.valueOf(limit)})); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
System.out.println("jar verified --" + limit + " signer(s)."); | System.out.println(Messages.getFormattedString("JarVerifier.7", Integer.valueOf(limit))); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
log.exiting("JarVerifier", "start"); | log.exiting(this.getClass().getName(), "start"); | void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar... |
log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); | log.entering(this.getClass().getName(), "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
throw new SecurityException("Signature Block missing for " + sigFileName); | throw new SecurityException(Messages.getFormattedString("JarVerifier.13", sigFileName)); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
throw new SecurityException("At least one SignerInfo element MUST be " + "present in a Signature Block (.DSA file)"); | throw new SecurityException(Messages.getString("JarVerifier.14")); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
throw new SecurityException("Missing EncryptedDigest in Signature Block " + "(.DSA file) first SignerInfo element"); log.finest("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes ")); | throw new SecurityException(Messages.getString("JarVerifier.16")); log.finest("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes ")); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
log.info("Signature block [" + sigFileName + "] is " + (result ? "" : "NOT ") + "OK"); | log.finer("Signature block [" + sigFileName + "] is " + (result ? "" : "NOT ") + "OK"); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
log.exiting("JarVerifier", "verifySF", new Boolean(result)); | log.exiting(this.getClass().getName(), "verifySF", Boolean.valueOf(result)); | private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =... |
log.entering("JarVerifier", "verifySFEntries"); | log.entering(this.getClass().getName(), "verifySFEntries"); | private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get... |
log.exiting("JarVerifier", "verifySFEntries", new Boolean(result)); | log.exiting(this.getClass().getName(), "verifySFEntries", Boolean.valueOf(result)); | private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get... |
{ | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | |
} | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | |
String nodeLocalName = node.getLocalName(); if (nodeLocalName != null && !equal(uri, nodeUri)) { | if (!equal(uri, nodeUri)) | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... |
if (nodeLocalName != null) { nodeLocalName = node.getNodeName(); } | String nodeLocalName = getLocalName(node); | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... |
public NotEmptyHolder(NotEmpty initialValue) | public NotEmptyHolder() | public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; } |
value = initialValue; | public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; } | |
private void updateImage() | void updateImage() | private void updateImage() { switch (locked) { case HLOCKED: updateHLockImage(); break; case SLOCKED: updateSLockImage(); break; case BLOCKED: updateBLockImage(); break; } } |
private void updateSlider() | void updateSlider() | private void updateSlider() { if (slider == null) return; slider.setMinimum(0); if (locked == HLOCKED) { slider.setMaximum(359); ; slider.setValue(((Number) hSpinner.getValue()).intValue()); slider.setInverted(true); } else { slider.setMaximum(100); slider.setInverted(false); if (sRad... |
private void updateTrack() | void updateTrack() | private void updateTrack() { switch (locked) { case HLOCKED: updateHTrack(); break; case SLOCKED: updateSTrack(); break; case BLOCKED: updateBTrack(); break; } } |
public MemoryImageSource(int w, int h, int pix[], int off, int scan) | public MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan) | public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); } |
this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); | this(w, h, cm, pix, off, scan, null); | public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); } |
((VmNormalClass) cls).setObjectSize(objectSize); | ((VmNormalClass<?>) cls).setObjectSize(objectSize); | private static void readFields(ByteBuffer data, VmType< ? > cls, VmCP cp, VmSharedStatics sharedStatics, VmIsolatedStatics isolatedStatics, int slotSize, int flags) { final int fcount = data.getChar(); if (fcount > 0) { final VmField[] ftable = new VmField[fcount]; ... |
if (model.isPressed() && b.getPressedIcon() != null) | if (model.isPressed() && b.getPressedIcon() != null && b.isEnabled()) | static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol... |
else if (b.isSelected()) | else if (b.isSelected() && b.isEnabled()) | static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ... | |
b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); b.setBackground(defaults.getColor(prefix + "background")); b.setMargin(defaults.getInsets(prefix + "margin")); b.setBorder(defaults.getBorder(prefix + "border")); b.... | LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); focusColor = UIManager.getColor(prefix + "focus"); b.setMargin(UIManager.getInsets(prefix + "margin")); b.setIconTextGap(UIManager.getInt(prefix + "textIconGap")); | protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ... |
(InputMap) defaults.get(prefix + "focusInputMap")); b.setRolloverEnabled(defaults.getBoolean(prefix + "rollover")); b.setOpaque(true); | (InputMap) UIManager.get(prefix + "focusInputMap")); b.setRolloverEnabled(UIManager.getBoolean(prefix + "rollover")); | protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ... |
if (b.isFocusOwner()) | if (b.isFocusOwner() && b.isFocusPainted()) | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ... |
BasicListUI.this.damageLayout(); | list.revalidate(); | public void contentsChanged(ListDataEvent e) { BasicListUI.this.damageLayout(); } |
BasicListUI.this.damageLayout(); | list.revalidate(); | public void intervalAdded(ListDataEvent e) { BasicListUI.this.damageLayout(); } |
BasicListUI.this.damageLayout(); | list.revalidate(); | public void intervalRemoved(ListDataEvent e) { BasicListUI.this.damageLayout(); } |
updateLayoutStateNeeded += modelChanged; | updateLayoutStateNeeded |= modelChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += selectionModelChanged; | updateLayoutStateNeeded |= selectionModelChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += fontChanged; | updateLayoutStateNeeded |= fontChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += fixedCellWidthChanged; | updateLayoutStateNeeded |= fixedCellWidthChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += fixedCellHeightChanged; | updateLayoutStateNeeded |= fixedCellHeightChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += prototypeCellValueChanged; | updateLayoutStateNeeded |= prototypeCellValueChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
updateLayoutStateNeeded += cellRendererChanged; BasicListUI.this.damageLayout(); | updateLayoutStateNeeded |= cellRendererChanged; | public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu... |
int index = list.getModel().getSize() - 1;; | int index = list.getModel().getSize() - 1; | protected int convertYToRow(int y0) { if (list.getModel().getSize() == 0) return -1; // When y0 < 0, then the JDK returns the maximum row index of the list. So // do we. if (y0 < 0) return list.getModel().getSize() - 1; // Update the layout if necessary. maybeUpdateLayoutState(); int i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.