buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
public static void checkResourceBundle(TestCase tc, String bname, String[] tags) { ResourceBundle b = ResourceBundle.getBundle(bname, new Locale("", "", "")); checkContainsAllFrom(tc, b, tags); checkNoDuplicates(tc, b); // Check the localized parts. Vector v = getModifiedSupported...
public static void checkResourceBundle(TestCase tc, String bname, String[] tags) { ResourceBundle b = ResourceBundle.getBundle(bname, new Locale("", "", "")); checkContainsAllFrom(tc, b, tags); checkNoDuplicates(tc, b); // Check the localized parts. Vector v = getModifiedSupported...
private void maybeReload(String path) { String jEditHome = jEdit.getJEditHome(); String settingsDirectory = jEdit.getSettingsDirectory(); if(!MiscUtilities.isURL(path)) path = MiscUtilities.resolveSymlinks(path); // On Windows and MacOS, path names are case insensitive if((VFSManager.getVFSForPath(path...
private void maybeReload(String path) { String jEditHome = jEdit.getJEditHome(); String settingsDirectory = jEdit.getSettingsDirectory(); if(!MiscUtilities.isURL(path)) path = MiscUtilities.resolveSymlinks(path); // On Windows and MacOS, path names are case insensitive if((VFSManager.getVFSForPath(path...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; if (!project.isOpen()) return COMPLETE; // nothing to do IIndex index = manager.getIndex(project.getFullPath()); if (index == null) return COMPLETE; ReadWriteMon...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; if (!project.isOpen()) return COMPLETE; // nothing to do IIndex index = manager.getIndex(project.getFullPath()); if (index == null) return COMPLETE; ReadWriteMon...
public SelectionScanner(boolean assertMode) { super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*task*/); }
public SelectionScanner(boolean assertMode) { super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*taskTags*/, null/*taskPriorities*/); }
public SourceElementParser getSourceElementParser(IJavaProject project, ISourceElementRequestor requestor) { // disable task tags to speed up parsing Map options = project.getOptions(true); options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$ SourceElementParser parser = new SourceElementParser( requesto...
public SourceElementParser getSourceElementParser(IJavaProject project, ISourceElementRequestor requestor) { // disable task tags to speed up parsing Map options = project.getOptions(true); options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$ SourceElementParser parser = new IndexingParser( requestor, ...
private static Record [] lookup(Name name, short type, short dclass, byte cred) { Record [] answers; int answerCount = 0, n = 0; Enumeration e; /*System.out.println("lookup of " + name + " " + Type.string(type));*/ CacheResponse cached = cache.lookupRecords(name, type, dclass, cred); /*System.out.println(cached);*...
private static Record [] lookup(Name name, short type, short dclass, byte cred) { Record [] answers; int answerCount = 0, n = 0; Enumeration e; /*System.out.println("lookup of " + name + " " + Type.string(type));*/ SetResponse cached = cache.lookupRecords(name, type, dclass, cred); /*System.out.println(cached);*/ ...
private void initHooks() { hooks.registerHook( "requestMap", H_requestMap ); hooks.registerHook( "contextMap", H_contextMap ); hooks.registerHook( "authenticate", H_authenticate ); hooks.registerHook( "authorize", H_authorize ); hooks.registerHook( "preService", H_preService ); hooks.registerHook( "beforeBody...
private void initHooks() { hooks.registerHook( "requestMap", H_requestMap ); hooks.registerHook( "contextMap", H_contextMap ); hooks.registerHook( "authenticate", H_authenticate ); hooks.registerHook( "authorize", H_authorize ); hooks.registerHook( "preService", H_preService ); hooks.registerHook( "beforeBody...
public void receiveEventBatch( String identifier, List eventBatchEntrys) { LogLog.debug( "received batch for '" + identifier + "', list.size()=" + eventBatchEntrys.size()); LogLog.debug(eventBatchEntrys.toString()); } }); LogManager.getRoot...
public void receiveEventBatch( String identifier, List eventBatchEntrys) { LogLog.debug( "received batch for '" + identifier + "', list.size()=" + eventBatchEntrys.size()); LogLog.debug(eventBatchEntrys.toString()); } }); LogManager.getRoot...
public void add(char[] newElement) { if (this.size == this.maxSize) // knows that size starts <= maxSize System.arraycopy(this.elements, 0, (this.elements = new char[this.maxSize *= 2][]), 0, this.size); this.elements[size++] = newElement; }
public void add(char[] newElement) { if (this.size == this.maxSize) // knows that size starts <= maxSize System.arraycopy(this.elements, 0, (this.elements = new char[this.maxSize *= 2][]), 0, this.size); this.elements[this.size++] = newElement; }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTableSelection(); MainInterface.processor.addOp(new ReplyToMailingListCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new ReplyToMailingListCommand(r)); }
protected void loadDialogSettings() { dialogSettings = new DialogSettings("Workbench"); //$NON-NLS-1$ // try r/w state area in the local file system String readWritePath = getStateLocation().append(FN_DIALOG_SETTINGS).toOSString(); File settingsFile = new File(readWritePath); if (settingsFile.exists()) { try ...
protected void loadDialogSettings() { dialogSettings = new DialogSettings("Workbench"); //$NON-NLS-1$ // try r/w state area in the local file system String readWritePath = getStateLocation().append(FN_DIALOG_SETTINGS).toOSString(); File settingsFile = new File(readWritePath); if (settingsFile.exists()) { try ...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public static Object loadExternalPlugin( String className, String type, File file, Object[] args) throws Exception { ColumbaLogger.log.debug("loading.."); if (type.equals("java") || type.equals("jar") ) { String path = file.getPath(); URL[] url = new URL[1]; URL newURL = new File(path).toURL(...
public static Object loadExternalPlugin( String className, String type, File file, Object[] args) throws Exception { ColumbaLogger.log.debug("loading.."); if (type.equals("java") || type.equals("jar") ) { String path = file.getPath(); URL[] url = new URL[1]; URL newURL = new File(path).toURL(...
public String toStringExpression() { /* slow speed */ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."/*nonNLS*/); } } return buffer.toString(); }
public String toStringExpression() { /* slow speed */ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."); //$NON-NLS-1$ } } return buffer.toString(); }
public String getName() { return "From_Contains"; }
public String getName() { return "from_contains"; }
public Inet6Address getAddress() { return address; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (address == null) return; byte [] data = address.toBytes(); }
public Inet6Address getAddress() { return address; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (address == null) return; out.write(address.toBytes()); }
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
// protected method need to be checked only - default access is already dealt with in #canBeSeen implementation // when checking that p.C -> q.B -> p.A cannot see default access members from A through B. // if ((currentMethod.modifiers & AccProtected) == 0) continue nextMethod; // BUT we can also ig...
// protected method need to be checked only - default access is already dealt with in #canBeSeen implementation // when checking that p.C -> q.B -> p.A cannot see default access members from A through B. // if ((currentMethod.modifiers & AccProtected) == 0) continue nextMethod; // BUT we can also ig...
public String toString(){ return this.leftPattern.toString() + "\n| "/*nonNLS*/ + this.rightPattern.toString(); }
public String toString(){ return this.leftPattern.toString() + "\n| " + this.rightPattern.toString(); //$NON-NLS-1$ }
public AddressbookTreeNode add( XmlElement childNode, AddressbookTreeNode parentFolder) { FolderItem item = new FolderItem(childNode); if (item == null) return null; // i18n stuff String name = null; //XmlElement.printNode(item.getRoot(), ""); int uid = item.getInteger("uid"); /* try { ...
public AddressbookTreeNode add( XmlElement childNode, AddressbookTreeNode parentFolder) { FolderItem item = new FolderItem(childNode); if (item == null) return null; // i18n stuff String name = null; //XmlElement.printNode(item.getRoot(), ""); int uid = item.getInteger("uid"); /* try { ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ Initializer(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. * @since 3.0 */ final List internalStructuralPropertiesForType(int apiLevel) { return prope...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ Initializer(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. * @since 3.0 */ final List internalStructuralPropertiesForType(int apiLevel) { return prope...
public static Report retrieveByName(String name) throws Exception { Report report = null; Criteria crit = new Criteria() .add(NAME, name) .add(DELETED, false); List reports = doSelect(crit); if (reports.size() == 1) { report = ...
public static Report retrieveByName(String name) throws Exception { Report report = null; Criteria crit = new Criteria() .add(NAME, name) .add(DELETED, false); List reports = doSelect(crit); if (reports.size() == 1) { report = ...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); // display status message worker.setDisplayText(MailResourceLoader.getString("statusbar", "message", "send_message")); // get Outbox folder...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); // display status message worker.setDisplayText(MailResourceLoader.getString("statusbar", "message", "send_message")); // get Outbox folder...
public MethodDeclaration addMissingAbstractMethodFor(MethodBinding methodBinding) { TypeBinding[] argumentTypes = methodBinding.parameters; int argumentsLength = argumentTypes.length; //the constructor MethodDeclaration methodDeclaration = new MethodDeclaration(this.compilationResult); methodDeclaration.selector =...
public MethodDeclaration addMissingAbstractMethodFor(MethodBinding methodBinding) { TypeBinding[] argumentTypes = methodBinding.parameters; int argumentsLength = argumentTypes.length; //the constructor MethodDeclaration methodDeclaration = new MethodDeclaration(this.compilationResult); methodDeclaration.selector =...
private void loadServlets() { Vector orderedKeys = new Vector(); Enumeration e = loadableServlets.keys(); // order keys while (e.hasMoreElements()) { Integer key = (Integer)e.nextElement(); int slot = -1; for (int i = 0; i < orderedKeys.size(); i++) { if (key.intValue() < ((Int...
private void loadServlets() { Vector orderedKeys = new Vector(); Enumeration e = loadableServlets.keys(); // order keys while (e.hasMoreElements()) { Integer key = (Integer)e.nextElement(); int slot = -1; for (int i = 0; i < orderedKeys.size(); i++) { if (key.intValue() < ((Int...
public MailConfig() { File configDirectory = createConfigDir(MODULE_NAME); accountFile = new File(configDirectory, "account.xml"); registerPlugin( accountFile.getName(), new AccountXmlConfig(accountFile)); accountTemplateFile = new File("account_template.xml"); registerTemplatePlugin( accountTemp...
public MailConfig() { File configDirectory = createConfigDir(MODULE_NAME); accountFile = new File(configDirectory, "account.xml"); registerPlugin( accountFile.getName(), new AccountXmlConfig(accountFile)); accountTemplateFile = new File("account_template.xml"); registerTemplatePlugin( accountTemp...
public SimpleResolver(String hostname) throws UnknownHostException { if (hostname == null) { hostname = FindServer.find1(); if (hostname == null) hostname = defaultResolver; } addr = InetAddress.getByName(hostname); }
public SimpleResolver(String hostname) throws UnknownHostException { if (hostname == null) { hostname = FindServer.server(); if (hostname == null) hostname = defaultResolver; } addr = InetAddress.getByName(hostname); }
public char[] getEnclosingTypeName() { if (this.innerInfo != null) { return this.innerInfo.getEnclosingTypeName(); } return null; }
public char[] getEnclosingTypeName() { if (this.innerInfo != null && !this.isAnonymous()) { return this.innerInfo.getEnclosingTypeName(); } return null; }
public static String id() { return "4.5-SNAPSHOT-20080722-1051"; }
public static String id() { return "4.5"; }
public static void main(String[] args) { JDialog dialog = new JDialog((Frame) null, "Pattern Editor"); dialog.getContentPane().add(new LayoutEditorPane()); dialog.setResizable(true); dialog.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); // dialog.pack(); dialog.setSize(new Dimension(640,...
public static void main(String[] args) { JDialog dialog = new JDialog((Frame) null, "Pattern Editor"); dialog.getContentPane().add(new LayoutEditorPane()); dialog.setResizable(true); dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // dialog.pack(); dialog.setSize(new Dimension(6...
public char[] findSource(IType type, IBinaryType info) { char[] sourceFileName = info.sourceFileName(); if (sourceFileName == null) return null; // no source file attribute String name = new String(sourceFileName); IPackageFragment pkgFrag = type.getPackageFragment(); if (!pkgFrag.isDefaultPackage()) { ...
public char[] findSource(IType type, IBinaryType info) { char[] sourceFileName = info.sourceFileName(); if (sourceFileName == null) return null; // no source file attribute String name = new String(sourceFileName); IPackageFragment pkgFrag = type.getPackageFragment(); if (!pkgFrag.isDefaultPackage()) { ...
private void reenableActionFromSelectedFolder() { if (lastSelectedFolder == null) { setEnabled(false); } else { IFolderItem item = lastSelectedFolder.getConfiguration(); if (item.get("property", "accessrights").equals("user")) { int index = lastSe...
private void reenableActionFromSelectedFolder() { if (lastSelectedFolder == null) { setEnabled(false); } else { IFolderItem item = lastSelectedFolder.getConfiguration(); if (item.getString("property", "accessrights").equals("user")) { int index = ...
public void removeElement() { //overrides removeElement in PropPanel Object target = getTarget(); if(target instanceof MClassifier) { MClassifier cls = (MClassifier) target; Object newTarget = cls.getNamespace(); MMUtil.SINGLETON.remove(cls); if(ne...
public void removeElement() { //overrides removeElement in PropPanel Object target = getTarget(); if(target instanceof MClassifier) { MClassifier cls = (MClassifier) target; Object newTarget = cls.getNamespace(); UmlFactory.getFactory().getCore().removeClassifi...
public void abortDueToInternalError(String errorMessage) { abortDueToInternalError(errorMessage, null); }
public void abortDueToInternalError(String errorMessage) { this.abortDueToInternalError(errorMessage, null); }
public AAAARecord(Name _name, short _dclass, int _ttl, int _prefixBits, Inet6Address _address, Name _prefix) throws IOException { super(_name, Type.AAAA, _dclass, _ttl); address = _address; } AAAARecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException { ...
public AAAARecord(Name _name, short _dclass, int _ttl, int _prefixBits, Inet6Address _address, Name _prefix) throws IOException { super(_name, Type.AAAA, _dclass, _ttl); address = _address; } AAAARecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in) throws IOException { super(_name, Ty...
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) { IPackageFragmentRoot root = (IPackageFragmentRoot)this.localVariable.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); String path; if (root.isArchi...
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) { IPackageFragmentRoot root = (IPackageFragmentRoot)this.localVariable.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); String path; if (root.isArchi...
public void actionPerformed(ActionEvent evt) { MessageFrameController c = new MessageFrameController(); FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTableSelection(); c.setTreeSelection(r); c.setTableSelection(r); /* c.treeController.setSelected((Folder) r[0]....
public void actionPerformed(ActionEvent evt) { MessageFrameController c = new MessageFrameController(); FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); c.setTreeSelection(r); c.setTableSelection(r); /* c.treeController.setSelected((Folder) r[0].ge...
public HeaderViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(false); HTMLEditorKit editorKit = new HTMLEditorKit(); setEditorKit(editorKit); // setup base url in order to be able to display images // in html-component URL baseUrl = DiskIO.getResou...
public HeaderViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(false); HTMLEditorKit editorKit = new HTMLEditorKit(); setEditorKit(editorKit); // setup base url in order to be able to display images // in html-component URL baseUrl = DiskIO.getResou...
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listener...
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listener...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer); if (index == null) return COMPLETE; /* ensure no concurrent write access to index */ ReadWrit...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/); if (index == null) return COMPLETE; /* ensur...
public static Filter createEmptyFilter() { XmlElement filter = new XmlElement("filter"); filter.addAttribute("description", "new filter"); filter.addAttribute("enabled", "true"); XmlElement rules = new XmlElement("rules"); rules.addAttribute("condition", "matchall"); ...
public static Filter createEmptyFilter() { XmlElement filter = new XmlElement("filter"); filter.addAttribute("description", "new filter"); filter.addAttribute("enabled", "true"); XmlElement rules = new XmlElement("rules"); rules.addAttribute("condition", "matchall"); ...
public String toDebugString(int depth) { StringBuffer buffer = new StringBuffer(); for (int i= 0; i < depth; i++) { buffer.append('\t'); } buffer.append(((JavaElement)getElement()).toDebugString()); buffer.append("["); //$NON-NLS-1$ switch (getKind()) { case IJavaElementDelta.ADDED : buffer.append('+'); ...
public String toDebugString(int depth) { StringBuffer buffer = new StringBuffer(); for (int i= 0; i < depth; i++) { buffer.append('\t'); } buffer.append(((JavaElement)getElement()).toDebugString()); buffer.append("["); //$NON-NLS-1$ switch (getKind()) { case IJavaElementDelta.ADDED : buffer.append('+'); ...
public CacheCleaner() { setDaemon(true); setName("CacheCleaner"); start(); }
public CacheCleaner() { setDaemon(true); setName("org.xbill.DNS.Cache.CacheCleaner"); start(); }
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map compilerOptionsMap = new CompilerOptions().getMap(); // compiler defaults for (Iterator iter = compi...
protected void initializeDefaultPluginPreferences() { Preferences preferences = getPluginPreferences(); HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map compilerOptionsMap = new CompilerOptions().getMap(); // compiler defaults for (Iterator iter = compi...
public static synchronized void refreshDefault() { try { defaultResolver = new ExtendedResolver(); } catch (UnknownHostException e) { throw new RuntimeException("Failed to initialize resolver"); } defaultSearchPath = FindServer.searchPath(); defaultCaches = new HashMap(); }
public static synchronized void refreshDefault() { try { defaultResolver = new ExtendedResolver(); } catch (UnknownHostException e) { throw new RuntimeException("Failed to initialize resolver"); } defaultSearchPath = ResolverConfig.getCurrentConfig().searchPath(); defaultCaches = new HashMap(); }
public void setModifiers(int modifiers) { modifiers &= ~org.eclipse.jdt.internal.compiler.env.IConstants.AccDeprecated; if ((modifiers & ~LEGAL_MODIFIERS) != 0) { throw new IllegalArgumentException(); } modifying(); this.modifiers = modifiers; }
public void setModifiers(int modifiers) { modifiers &= org.eclipse.jdt.internal.compiler.lookup.CompilerModifiers.AccJustFlag; if ((modifiers & ~LEGAL_MODIFIERS) != 0) { throw new IllegalArgumentException(); } modifying(); this.modifiers = modifiers; }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "return "/*nonNLS*/; if (expression != null ) s = s + expression.toStringExpression() ; return s; }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "return "; //$NON-NLS-1$ if (expression != null ) s = s + expression.toStringExpression() ; return s; }
public boolean isUpperbound() { return this.binding.isWildcard() && ((WildcardBinding) this.binding).kind == Wildcard.SUPER; }
public boolean isUpperbound() { return this.binding.isWildcard() && ((WildcardBinding) this.binding).kind == Wildcard.EXTENDS; }
public int getNodeType() { return CHARACTER_LITERAL; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { CharacterLiteral result = new CharacterLiteral(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setEscapedValue(getEscap...
public int getNodeType() { return CHARACTER_LITERAL; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { CharacterLiteral result = new CharacterLiteral(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setEscapedValue(getEsca...
private static final Record getTypedObject(int type) { if (type < 0 || type > knownRecords.length) return unknownRecord.getObject(); if (knownRecords[type] != null) return knownRecords[type]; /* Construct the class name by putting the type before "Record". */ String s = Record.class.getName(); StringBuffer sb...
private static final Record getTypedObject(int type) { if (type < 0 || type > knownRecords.length) return unknownRecord.getObject(); if (knownRecords[type] != null) return knownRecords[type]; /* Construct the class name by putting the type before "Record". */ String s = Record.class.getName(); StringBuffer sb...
public String toString() { return Localizer.localize ("Tree", "Interaction->Messages"); }
public String toString() { return Localizer.localize ("Tree", "misc.interaction.messages"); }
public void acceptImport(int declarationStart, int declarationEnd, char[] name, boolean onDemand, int modifiers) { int[] sourceRange = {declarationStart, declarationEnd}; String importName = new String(name); /** name is set to contain the '*' */ if (onDemand) { importName+=".*"; //$NON-NLS-1$ } fNode= new DOMI...
public void acceptImport(int declarationStart, int declarationEnd, char[] name, boolean onDemand, int modifiers) { int[] sourceRange = {declarationStart, declarationEnd}; String importName = new String(name); /** name is set to contain the '*' */ if (onDemand) { importName+=".*"; //$NON-NLS-1$ } fNode= new DOMI...
public TypeBinding capture(Scope scope, int position) { if ((this.tagBits & TagBits.HasDirectWildcard) == 0) return this; TypeBinding[] originalArguments = arguments; int length = originalArguments.length; TypeBinding[] capturedArguments = new TypeBinding[length]; // Retrieve the type context for c...
public TypeBinding capture(Scope scope, int position) { if ((this.tagBits & TagBits.HasDirectWildcard) == 0) return this; TypeBinding[] originalArguments = arguments; int length = originalArguments.length; TypeBinding[] capturedArguments = new TypeBinding[length]; // Retrieve the type context for c...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public IJavaElement getJavaElement() { IType declaringType = (IType) getDeclaringClass().getJavaElement(); if (declaringType == null) return null; if (!(this.resolver instanceof DefaultBindingResolver)) return null; MethodDeclaration method = (MethodDeclaration) ((DefaultBindingResolver) this.resolver).binding...
public IJavaElement getJavaElement() { IType declaringType = (IType) getDeclaringClass().getJavaElement(); if (declaringType == null) return null; if (!(this.resolver instanceof DefaultBindingResolver)) return null; MethodDeclaration method = (MethodDeclaration) ((DefaultBindingResolver) this.resolver).binding...
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".this" ; //$NON-NLS-1$ }
public String toStringExpression(){ /* slow code */ return qualification.toString(0)+".this"/*nonNLS*/ ; }
public String toString() { return new String(constantPoolName) + " (id="/*nonNLS*/ + id + ")"/*nonNLS*/; }
public String toString() { return new String(constantPoolName) + " (id=" + id + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public IMAPFolder(String name, String type, String path) throws Exception { super(name, type, path); FolderItem item = getFolderItem(); item.set("property", "accessrights", "user"); item.set("property", "subfolder", "true"); }
public IMAPFolder(String name, String type, String path) throws Exception { super(name, type, path); FolderItem item = getConfiguration(); item.set("property", "accessrights", "user"); item.set("property", "subfolder", "true"); }
public void updateActionBars() { if (updateDisabled || updatesDeferred()) { return; } // updateAll required in order to enable accelerators on pull-down menus getMenuBarManager().update(false); getCoolBarManager().update(false); getStatusLineManager().upda...
public void updateActionBars() { if (updateDisabled || updatesDeferred()) { return; } // updateAll required in order to enable accelerators on pull-down menus getMenuBarManager().updateAll(false); getCoolBarManager().update(false); getStatusLineManager().u...
public ColumbaHeader(Header header) { this.header = header; flags = new Flags(); attributes = new Attributes(); BasicHeader basicHeader = new BasicHeader(header); attributes.put("columba.alreadyfetched", Boolean.FALSE); attributes.put("columba.spam", Boolean.FALSE);...
public ColumbaHeader(Header header) { this.header = header; flags = new Flags(); attributes = new Attributes(); BasicHeader basicHeader = new BasicHeader(header); attributes.put("columba.alreadyfetched", Boolean.FALSE); attributes.put("columba.spam", Boolean.FALSE);...
public void resolve(BlockScope scope) { if ((bits & IsUsefulEmptyStatement) == 0) { scope.problemReporter().superfluousSemicolon(this.sourceStart, this.sourceEnd); } else { scope.problemReporter().emptyControlFlowStatement(this.sourceStart, this.sourceEnd); } }
public void resolve(BlockScope scope) { if ((this.bits & IsUsefulEmptyStatement) == 0) { scope.problemReporter().superfluousSemicolon(this.sourceStart, this.sourceEnd); } else { scope.problemReporter().emptyControlFlowStatement(this.sourceStart, this.sourceEnd); } }
protected NameReference getUnspecifiedReference() { /* build a (unspecified) NameReference which may be qualified*/ int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReference(); } int leng...
protected NameReference getUnspecifiedReference() { /* build a (unspecified) NameReference which may be qualified*/ int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReference(); } int leng...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public Block getBody() { if (this.body == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.body == null) { preLazyInit(); this.body= new Block(this.ast); postLazyInit(this.body, BODY_PROPERTY); } } } return this.body; }
public Block getBody() { if (this.body == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.body == null) { preLazyInit(); this.body= new Block(this.ast); postLazyInit(this.body, BODY_PROPERTY); } } } return this.body; }
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){ Scanner scanner = new Scanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, assertMode, null/*task*/); scanner.recordLineSeparator = recordLineSeparator; return scan...
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){ Scanner scanner = new Scanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, assertMode, null/*taskTags*/, null/*taskPriorities*/); scanner.recordLineSeparator = record...
protected boolean isValidElement(MBase element) { return element instanceof MUseCase; } }
protected boolean isValidElement(Object element) { return element instanceof MUseCase; } }
public StringBuffer printExpression(int indent, StringBuffer output) { return output.append("<CompleteOnClass:").append(token).append('>'); //$NON-NLS-1$ }
public StringBuffer printExpression(int indent, StringBuffer output) { return output.append("<CompleteOnClass:").append(this.token).append('>'); //$NON-NLS-1$ }
public PropPanelAssociationRole() { super("Association Role",_associationRoleIcon, ConfigLoader.getTabPropsOrientation()); // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name changed or is removed anywhere in the...
public PropPanelAssociationRole() { super("Association Role",_associationRoleIcon, ConfigLoader.getTabPropsOrientation()); // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name changed or is removed anywhere in the...
public void run(EachTestNotifier context) { context.fireTestStarted(); try { fNext.evaluate(); } catch (AssumptionViolatedException e) { context.addIgnorance(e); } catch (Throwable e) { context.addFailure(e); } finally { context.fireTestFinished(); } }
public void run(EachTestNotifier context) { context.fireTestStarted(); try { fNext.evaluate(); } catch (AssumptionViolatedException e) { context.addFailedAssumption(e); } catch (Throwable e) { context.addFailure(e); } finally { context.fireTestFinished(); } }
public RRSIGRecord(Name name, int dclass, long ttl, int covered, int alg, int origttl, Date expire, Date timeSigned, int footprint, Name signer,
public RRSIGRecord(Name name, int dclass, long ttl, int covered, int alg, long origttl, Date expire, Date timeSigned, int footprint, Name signer,
public Vector getChildren(Object parent) { if (!(parent instanceof CompositeState)) return null; CompositeState cs = (CompositeState) parent; Vector subs = cs.getSubstate(); if (!cs.getIsConcurent()) return subs; Vector children = new Vector(); java.util.Enumeration enum = subs.elements(); ...
public Vector getChildren(Object parent) { if (!(parent instanceof CompositeState)) return null; CompositeState cs = (CompositeState) parent; Vector subs = cs.getSubstate(); if (!cs.getIsConcurrent()) return subs; Vector children = new Vector(); java.util.Enumeration enum = subs.elements(); ...
protected void acceptBinaryMethod( IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, String[] parameterSignatures, char[][] typeParameterNames, char[][][] typeParameterBoundNames, char[] uniqueKey, boolean isConstructor) { IMethod method= type.getMethod(new Str...
protected void acceptBinaryMethod( IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, String[] parameterSignatures, char[][] typeParameterNames, char[][][] typeParameterBoundNames, char[] uniqueKey, boolean isConstructor) { IMethod method= type.getMethod(new Str...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean affected = false; if (this.genericType == unresolvedType) { this.genericType = resolvedType; // no raw conversion affected = true; } else if (this.bound == unresolvedType) {...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean affected = false; if (this.genericType == unresolvedType) { this.genericType = resolvedType; // no raw conversion affected = true; } else if (this.bound == unresolvedType) {...
public String format(LoggingEvent event) { // Reset buf buf.setLength(0); dateFormat(buf, event); if(this.threadPrinting) { buf.append('['); buf.append(event.getThreadName()); buf.append("] "); } buf.append(event.priority.toString()); buf.append(' '); if(thi...
public String format(LoggingEvent event) { // Reset buf buf.setLength(0); dateFormat(buf, event); if(this.threadPrinting) { buf.append('['); buf.append(event.getThreadName()); buf.append("] "); } buf.append(event.priority.toString()); buf.append(' '); if(thi...
private TypeBinding lowerUpperBound(TypeBinding[] types, List lubStack) { int typeLength = types.length; if (typeLength == 1) { TypeBinding type = types[0]; return type == null ? VoidBinding : type; } // cycle detection int stackLength = lubStack.size(); nextLubCheck: for (int i = 0; i < stackLeng...
private TypeBinding lowerUpperBound(TypeBinding[] types, List lubStack) { int typeLength = types.length; if (typeLength == 1) { TypeBinding type = types[0]; return type == null ? VoidBinding : type; } // cycle detection int stackLength = lubStack.size(); nextLubCheck: for (int i = 0; i < stackLeng...
public AST(Map options) { Object value = options.get("org.eclipse.jdt.core.compiler.source"); //$NON-NLS-1$ if ("1.3".equals(value)) { //$NON-NLS-1$ // use a 1.3 scanner - treats assert as an identifier this.scanner = new Scanner(); } else { // use a 1.4 scanner - treats assert as an keyword this.sca...
public AST(Map options) { Object value = options.get("org.eclipse.jdt.core.compiler.source"); //$NON-NLS-1$ if ("1.3".equals(value)) { //$NON-NLS-1$ // use a 1.3 scanner - treats assert as an identifier this.scanner = new Scanner(); } else { // use a 1.4 scanner - treats assert as an keyword this.sca...
public String toString() { return Localizer.localize ("Tree", "Package->Base Class"); }
public String toString() { return Localizer.localize ("Tree", "misc.package.base-class"); }
public void resolve(MethodScope methScope) { // get method declaration AbstractMethodDeclaration methDecl = methScope.referenceMethod(); boolean overriding = methDecl == null || methDecl.binding == null ? false : !methDecl.binding.isStatic() && ((methDecl.binding.modifiers & (ExtraCompilerModifiers.AccImpleme...
public void resolve(MethodScope methScope) { // get method declaration AbstractMethodDeclaration methDecl = methScope.referenceMethod(); boolean overriding = methDecl == null || methDecl.binding == null ? false : !methDecl.binding.isStatic() && ((methDecl.binding.modifiers & (ExtraCompilerModifiers.AccImpleme...
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; if ((folder != null) && folder instanceof AbstractMessageFolder) { IFo...
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; if ((folder != null) && folder instanceof AbstractMessageFolder) { IFo...
private KeySequence getKeySequence() { KeySequence keySequence = null; String name = comboKeySequence.getText(); keySequence = (KeySequence) keySequencesByName.get(name); if (keySequence == null) keySequence = KeySequence.parse(name); return keySequence; }
private KeySequence getKeySequence() { KeySequence keySequence = null; String name = comboKeySequence.getText(); keySequence = (KeySequence) keySequencesByName.get(name); if (keySequence == null) keySequence = KeySequence.parseKeySequence(name); return keySequence; }
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ SingleVariableDeclaration(AST ast) { super(ast); if (ast.apiLevel >= AST.JLS3) { this.modifiers = new ASTNode.NodeList(MODIFIERS2_PROPERTY); } } /* (omit javadoc for this method) * Method decl...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ SingleVariableDeclaration(AST ast) { super(ast); if (ast.apiLevel >= AST.JLS3) { this.modifiers = new ASTNode.NodeList(MODIFIERS2_PROPERTY); } } /* (omit javadoc for this method) * Method decl...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; // get selected folder AddressbookFolder folder = (AddressbookFolder) mediator.getTree() .getSelectedFolder(); ContactEditorDialog dialog = new ContactEditorDialog(mediator.get...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; // get selected folder AddressbookFolder folder = (AddressbookFolder) mediator.getTree() .getSelectedFolder(); ContactEditorDialog dialog = new ContactEditorDialog(mediator.get...
public TableView(HeaderTableModel headerTableModel, TableModelSorter sorter) { super(); this.sorter = sorter; this.headerTableModel = headerTableModel; defaultRowHeight = getRowHeight(); setModel(headerTableModel); // load plugin handler used for the columns try { handler = PluginManager ....
public TableView(HeaderTableModel headerTableModel, TableModelSorter sorter) { super(); this.sorter = sorter; this.headerTableModel = headerTableModel; defaultRowHeight = getRowHeight(); setModel(headerTableModel); // load plugin handler used for the columns try { handler = PluginManager ....
protected ICompilationUnit createCompilationUnitFromPath(Openable handle, String osPath) { ICompilationUnit unit = super.createCompilationUnitFromPath(handle, osPath); this.cuToHandle.put(unit, handle); return unit; } protected IBinaryType createInfoFromClassFile(Openable classFile, String osPath) { String document...
protected ICompilationUnit createCompilationUnitFromPath(Openable handle, String osPath) { ICompilationUnit unit = super.createCompilationUnitFromPath(handle, osPath); this.cuToHandle.put(unit, handle); return unit; } protected IBinaryType createInfoFromClassFile(Openable classFile, String osPath) { String document...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & IsReachable) == 0) { return; } int pc = codeStream.position; if (this.assertionSyntheticFieldBinding != null) { BranchLabel assertionActivationLabel = new BranchLabel(codeStream); codeStream.getstatic(this.as...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & IsReachable) == 0) { return; } int pc = codeStream.position; if (this.assertionSyntheticFieldBinding != null) { BranchLabel assertionActivationLabel = new BranchLabel(codeStream); codeStream.fieldAccess(Opcod...
public byte [] toWireCanonical() throws IOException { DataByteOutputStream out = new DataByteOutputStream(); toWireCanonical(out); return out.toByteArray(); } StringBuffer toStringNoData() { StringBuffer sb = new StringBuffer(); sb.append(name); sb.append("\t"); if (Options.check("BINDTTL")) sb.append(TTL.fo...
public byte [] toWireCanonical() throws IOException { DataByteOutputStream out = new DataByteOutputStream(); toWireCanonical(out); return out.toByteArray(); } StringBuffer toStringNoData() { StringBuffer sb = new StringBuffer(); sb.append(name); sb.append("\t"); if (Options.check("BINDTTL")) sb.append(TTL.fo...
public int getModifiers() { if (isField()) { return ((FieldBinding) this.binding).getAccessFlags() & VALID_MODIFIERS; } if (binding.isFinal()) { return IModifierConstants.ACC_FINAL; } return 0; }
public int getModifiers() { if (isField()) { return ((FieldBinding) this.binding).getAccessFlags() & VALID_MODIFIERS; } if (binding.isFinal()) { return IModifierConstants.ACC_FINAL; } return Modifier.NONE; }
public String convert(LoggingEvent event) { String n = getFullyQualifiedName(event); if(precision <= 0) return n; else { int len = n.length(); // We substract 1 from 'len' when assigning to 'end' to avoid out of // bounds exception in return r.substring(end+1, len). This can happen if //...
public String convert(LoggingEvent event) { String n = getFullyQualifiedName(event); if(precision <= 0) return n; else { int len = n.length(); // We substract 1 from 'len' when assigning to 'end' to avoid out of // bounds exception in return r.substring(end+1, len). This can happen if //...
public void scrubOutput() { IJavaProject projectElement = JavaCore.create(this.project); IClasspathEntry[] entries; try { entries = projectElement.getExpandedClasspath(true); } catch(JavaModelException e){ throw this.dc.internalException(e); } /* detect whether the binary ouput coincidates with source folde...
public void scrubOutput() { IJavaProject projectElement = JavaCore.create(this.project); IClasspathEntry[] entries; try { entries = projectElement.getResolvedClasspath(true); } catch(JavaModelException e){ throw this.dc.internalException(e); } /* detect whether the binary ouput coincidates with source folde...
public String toString(){ StringBuffer buffer = new StringBuffer(); if (this.fileName != null){ buffer.append("Filename : ").append(this.fileName).append('\n'); //$NON-NLS-1$ } if (this.compiledTypes != null){ buffer.append("COMPILED type(s) \n"); //$NON-NLS-1$ Iterator keys = this.compiledTypes.key...
public String toString(){ StringBuffer buffer = new StringBuffer(); if (this.fileName != null){ buffer.append("Filename : ").append(this.fileName).append('\n'); //$NON-NLS-1$ } if (this.compiledTypes != null){ buffer.append("COMPILED type(s) \n"); //$NON-NLS-1$ Iterator keys = this.compiledTypes.key...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = scope.enclosingSourceType(); constant = Constant.NotAConst...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = scope.enclosingSourceType(); constant = Constant.NotAConst...
public String getMainTaskName(){ return Util.bind("operation.createMethodProgress"/*nonNLS*/); }
public String getMainTaskName(){ return Util.bind("operation.createMethodProgress"); //$NON-NLS-1$ }
public void test() { IPluginManager manager = PluginManager.getInstance(); manager.initPlugins(); }
public void test() { IPluginManager manager = PluginManager.getInstance(); manager.initCorePlugins(); }
public void notifySourceElementRequestor(FieldDeclaration fieldDeclaration, TypeDeclaration declaringType) { // range check boolean isInRange = scanner.initialPosition <= fieldDeclaration.declarationSourceStart && scanner.eofPosition >= fieldDeclaration.declarationSourceEnd; switch(fieldDeclaration.getKi...
public void notifySourceElementRequestor(FieldDeclaration fieldDeclaration, TypeDeclaration declaringType) { // range check boolean isInRange = scanner.initialPosition <= fieldDeclaration.declarationSourceStart && scanner.eofPosition >= fieldDeclaration.declarationSourceEnd; switch(fieldDeclaration.getKi...
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.TheInstance; ArgoDiagram activeDiagram = pb.getActiveDiagram(); if (!(activeDiagram instanceof UMLClassDiagram)) return; UMLClassDiagram d = (UMLClassDiagram) activeDiagram; Vector classes = new Vec...
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.TheInstance; ArgoDiagram activeDiagram = pb.getActiveDiagram(); if (!(activeDiagram instanceof UMLClassDiagram)) return; UMLClassDiagram d = (UMLClassDiagram) activeDiagram; Vector classes = new Vec...
public void setLoggerRepository(LoggerRepository repository) throws IllegalStateException { if(repository == null) { throw new IllegalArgumentException("repository argument cannot be null"); } if(this.repository != null) { this.repository = repository; } else { throw new IllegalState...
public void setLoggerRepository(LoggerRepository repository) throws IllegalStateException { if(repository == null) { throw new IllegalArgumentException("repository argument cannot be null"); } if(this.repository == null) { this.repository = repository; } else { throw new IllegalState...
public static boolean checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) { TypeBinding[] params = method.parameters; int paramLength = params.len...
public static boolean checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) { TypeBinding[] params = method.parameters; int paramLength = params.len...
public void run() { while(!interrupted) { try { Thread.currentThread().sleep(delay); } catch(InterruptedException e) { // no interruption expected } checkAndConfigure(); } }
public void run() { while(!interrupted) { try { Thread.sleep(delay); } catch(InterruptedException e) { // no interruption expected } checkAndConfigure(); } }
public SIGRecord(Name _name, short _dclass, int _ttl, MyStringTokenizer st, Name origin) throws IOException { super(_name, Type.SIG, _dclass, _ttl); covered = Type.value(st.nextToken()); alg = Byte.parseByte(st.nextToken()); labels = name.labels(); origttl = Integer.parseInt(st.nextToken()); expire = parseD...
public SIGRecord(Name _name, short _dclass, int _ttl, MyStringTokenizer st, Name origin) throws IOException { super(_name, Type.SIG, _dclass, _ttl); covered = Type.value(st.nextToken()); alg = Byte.parseByte(st.nextToken()); labels = name.labels(); origttl = TTL.parseTTL(st.nextToken()); expire = parseDate(...