buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void acceptBinaryMethod(IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames) { String[] parameterTypes= null; if (parameterTypeNames != null) { parameterTypes= new String[parameterTypeNames.length]; for (int i= 0, max = parameterTypeNames.length; i < max; i++) { S...
protected void acceptBinaryMethod(IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames) { String[] parameterTypes= null; if (parameterTypeNames != null) { parameterTypes= new String[parameterTypeNames.length]; for (int i= 0, max = parameterTypeNames.length; i < max; i++) { S...
public Record _nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } if (generator != null) { Record rec = nextGenerated(); if (rec != null) return rec; endGenerate(); } whi...
public Record _nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } if (generator != null) { Record rec = nextGenerated(); if (rec != null) return rec; endGenerate(); } whi...
public List getAssociatedUsers() throws Exception { List result = null; Object obj = ScarabCache.get(this, GET_ASSOCIATED_USERS); if ( obj == null ) { List attributeList = getModule() .getUserAttributes(getIssueType(), true); List...
public List getAssociatedUsers() throws Exception { List result = new ArrayList(); Object obj = ScarabCache.get(this, GET_ASSOCIATED_USERS); if ( obj == null ) { List attributeList = getModule() .getUserAttributes(getIssueType(), true); ...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferences.SHOULD_CLOSE_EDITORS_ON_EXIT, false); s...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferences.SHOULD_CLOSE_EDITORS_ON_EXIT, false); s...
public BodyTextViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(true); htmlEditorKit = new HTMLEditorKit(); setEditorKit(htmlEditorKit); parser = new DocumentParser(); setContentType("text/html"); XmlElement gui = MailConfig.get("options").getElement("/options/gui"); XmlElement messageview...
public BodyTextViewer() { setMargin(new Insets(5, 5, 5, 5)); setEditable(false); htmlEditorKit = new HTMLEditorKit(); setEditorKit(htmlEditorKit); parser = new DocumentParser(); setContentType("text/html"); XmlElement gui = MailConfig.get("options").getElement("/options/gui"); XmlElement messagevie...
IBM Corporation - initial API and implementation /********************************************************************** Copyright (c) 2002 IBM Corp. and others. All rights reserved.   This program and the accompanying materials are made available under the terms of the Common Public License v0.5 which accompanies thi...
IBM Corporation - initial API and implementation /********************************************************************** Copyright (c) 2002 IBM Corp. and others. All rights reserved.   This program and the accompanying materials are made available under the terms of the Common Public License v0.5 which accompanies thi...
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 String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "return "/*nonNLS*/; if (expression != null ) s = s + expression.toStringExpression() ; return s; }
protected void parseCategory(Element loggerElement) { // Create a new org.apache.log4j.Category object from the <category> element. String catName = subst(loggerElement.getAttribute(NAME_ATTR)); Logger cat; String className = subst(loggerElement.getAttribute(CLASS_ATTR)); if (EMPTY_STR.equals(c...
protected void parseCategory(Element loggerElement) { // Create a new org.apache.log4j.Category object from the <category> element. String catName = subst(loggerElement.getAttribute(NAME_ATTR)); Logger cat; String className = subst(loggerElement.getAttribute(CLASS_ATTR)); if (EMPTY_STR.equals(c...
public void setSubstate(Vector x) throws PropertyVetoException { if (_substate == null) _substate = new Vector(); fireVetoableChange("substate", _substate, x); _substate = x; java.util.Enumeration enum = _substate.elements(); while (enum.hasMoreElements()) { StateVertex sv = (StateVertex) en...
public void setSubstate(Vector x) throws PropertyVetoException { if (_substate == null) _substate = new Vector(); fireVetoableChangeNoCompare("substate", _substate, x); _substate = x; java.util.Enumeration enum = _substate.elements(); while (enum.hasMoreElements()) { StateVertex sv = (StateV...
public TypeBinding resolveType(BlockScope scope) { // compute a new constant if the cast is effective // due to the fact an expression may start with ( and that a cast can also start with ( // the field is an expression....it can be a TypeReference OR a NameReference Or // any kind of Expression <-- this last...
public TypeBinding resolveType(BlockScope scope) { // compute a new constant if the cast is effective // due to the fact an expression may start with ( and that a cast can also start with ( // the field is an expression....it can be a TypeReference OR a NameReference Or // any kind of Expression <-- this last...
public class OpenableElementInfo extends JavaElementInfo { /******************************************************************************* * 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 Pu...
public class OpenableElementInfo extends JavaElementInfo { /******************************************************************************* * 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 Pu...
public FolderPluginHandler() { super("addressbook_folder", "org/columba/addressbook/folder/folder.xml"); parentNode = getConfig().getRoot().getElement("folderlist"); }
public FolderPluginHandler() { super("org.columba.addressbook.folder", "org/columba/addressbook/folder/folder.xml"); parentNode = getConfig().getRoot().getElement("folderlist"); }
public void execute(ContextManager cm) throws TomcatException { // Find Ajp12 connector int portInt=8007; InetAddress address=null; BaseInterceptor ci[]=cm.getContextInterceptors(); for( int i=0; i<ci.length; i++ ) { Object con=ci[i]; if( con instanceof Ajp12ConnectionHandler ) { PoolTcpConn...
public void execute(ContextManager cm) throws TomcatException { // Find Ajp12 connector int portInt=8007; InetAddress address=null; BaseInterceptor ci[]=cm.getInterceptors(); for( int i=0; i<ci.length; i++ ) { Object con=ci[i]; if( con instanceof Ajp12ConnectionHandler ) { PoolTcpConnector t...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && !this.pattern.varargs) { int length = this.pattern.parameterSim...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && this.pattern.shouldCountParameter()) { int length = this.patter...
public void actionPerformed(ActionEvent evt) { try { Desktop.browse(url.getRealURL()); } catch (DesktopException e) { JOptionPane.showMessageDialog(null, GlobalResourceLoader .getString("dialog", "error", "no_browser"), "Error", JOptionPane.ERROR_MESSAGE); } }
public void actionPerformed(ActionEvent evt) { try { Desktop.browse(url.getRealURL()); } catch (DesktopException e) { JOptionPane.showMessageDialog(null, GlobalResourceLoader .getString("org.columba.core.i18n.dialog", "error", "no_browser"), "Error", JOptionPane.ERROR_MESSAGE); } }
public void save(DBConnection dbcon) throws Exception { if ( isModified()) { checkTransaction("Cannot save a value outside a Transaction"); // Save activity record Activity activity = new Activity(); String desc = getActivityDescription(); ...
public void save(DBConnection dbcon) throws Exception { if ( isModified()) { checkTransaction("Cannot save a value outside a Transaction"); // Save activity record Activity activity = new Activity(); String desc = getActivityDescription(); ...
public void mousePressed(MouseEvent me) { dragScrolling = (me.getModifiers() == InputEvent.BUTTON2_MASK); // get the component and the view component = (JComponent) _editor.getAwtComponent(); if (component == null) return; if (component != null && component.getParent() instanceof JViewport) ...
public void mousePressed(MouseEvent me) { dragScrolling = (me.isAltDown()); // get the component and the view component = (JComponent) _editor.getAwtComponent(); if (component == null) return; if (component != null && component.getParent() instanceof JViewport) view = (JViewport) component....
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != NotAConstant) { if (valueRequired) { codeStream.generateConstant(constant, implicitConversion); } } else { boolean isStatic = binding.isStatic(); receiver.generat...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != NotAConstant) { if (valueRequired) { codeStream.generateConstant(constant, implicitConversion); } } else { boolean isStatic = binding.isStatic(); receiver.generat...
LogLog.info("Log4jEntityResolver.resolveEntity("+publicId+","+systemId+") called"); if (systemId.endsWith("log4j.dtd")) { Class clazz = getClass(); InputStream in = clazz.getResourceAsStream("/org/apache/log4j/xml/log4j.dtd"); if (in == null) { LogLog.error( "Could n...
LogLog.debug("Log4jEntityResolver.resolveEntity("+publicId+","+systemId+") called"); if (systemId.endsWith("log4j.dtd")) { Class clazz = getClass(); InputStream in = clazz.getResourceAsStream("/org/apache/log4j/xml/log4j.dtd"); if (in == null) { LogLog.error( "Could ...
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Request req=((HttpServletRequestFacade)request).getRealRequest(); Context ctx=req.getContext(); String realm=ctx.getRealmName(); if( "FORM".equals( ctx.getAuthMethod() )) { // the co...
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Request req=((HttpServletRequestFacade)request).getRealRequest(); Context ctx=req.getContext(); String realm=ctx.getRealmName(); if( "FORM".equals( ctx.getAuthMethod() )) { // the co...
public Name(String s, Name origin) { labels = 0; name = new Object[MAXLABELS]; if (s.equals("@") && origin != null) { append(origin); qualified = true; return; } try { MyStringTokenizer st = new MyStringTokenizer(s, "."); while (st.hasMoreTokens()) { String token = st.nextToken(); if (token.charA...
public Name(String s, Name origin) { labels = 0; name = new Object[MAXLABELS]; if (s.equals("@") && origin != null) { append(origin); qualified = true; return; } try { MyStringTokenizer st = new MyStringTokenizer(s, "."); while (st.hasMoreTokens()) { String token = st.nextToken(); if (token.charA...
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == close) dispose(); else if(source == remove) { TreePath[] selected = tree.getSelectionModel() .getSelectionPaths(); StringBuffer buf = new StringBuffer(); Roster roster = new Roster(); f...
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == close) dispose(); else if(source == remove) { TreePath[] selected = tree.getSelectionModel() .getSelectionPaths(); StringBuffer buf = new StringBuffer(); Roster roster = new Roster(); f...
private boolean canBeProcessed(final OperationItem opItem) { return opItem.getOperation().canBeProcessed(opItem.getOperationMode()); }
private boolean canBeProcessed(final OperationItem opItem) { return opItem.getOperation().canBeProcessed(); }
public TypeBinding resolveType(BlockScope scope) { // it can be a package, type, member type, local variable or field binding = scope.getBinding(tokens, this); if (!binding.isValidBinding()) { if (binding instanceof ProblemFieldBinding) { scope.problemReporter().invalidField(this, (FieldBinding) binding); } e...
public TypeBinding resolveType(BlockScope scope) { // it can be a package, type, member type, local variable or field binding = scope.getBinding(tokens, this); if (!binding.isValidBinding()) { if (binding instanceof ProblemFieldBinding) { scope.problemReporter().invalidField(this, (FieldBinding) binding); } e...
public String getFileName() { String filePath = getFilePath(); String fileName = filePath.substring(filePath.lastIndexOf(File.separator) + 1, filePath.lastIndexOf('_') ); return (fileName + filePath.substring(filePath.lastIndexOf('.'))); }...
public String getFileName() { String filePath = getFilePath(); String fileName = filePath.substring(filePath.lastIndexOf('/') + 1, filePath.lastIndexOf('_') ); return (fileName + filePath.substring(filePath.lastIndexOf('.'))); }
public PropPanelSimpleState(String name, ImageIcon icon, Orientation orientation) { super("Simple State", _stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Translator.localize("UMLMenu", "label.name"), getNameTextField()); addField(Translator.localize(...
public PropPanelSimpleState(String name, ImageIcon icon, Orientation orientation) { super(name, _stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Translator.localize("UMLMenu", "label.name"), getNameTextField()); addField(Translator.localize("UMLMenu",...
public ParameterAnnotation( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int length = u2At(classFileBytes, 0, offset); this.readOffset = 2; this.annotationsNumber = length; if (length != 0) { this.annotations = new IAnnotation[length]; for...
public ParameterAnnotation( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int length = u2At(classFileBytes, 0, offset); this.readOffset = 2; this.annotationsNumber = length; if (length != 0) { this.annotations = new IAnnotation[length]; for...
public ResetPerspectiveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("ResetPerspective.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclipse.ui.w...
public ResetPerspectiveAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("ResetPerspective.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("org.eclipse.ui.w...
public String getMainTaskName(){ return Util.bind("operation.createMethodProgress"); //$NON-NLS-1$ }
public String getMainTaskName(){ return Util.bind("operation.createMethodProgress"/*nonNLS*/); }
private void indexClassFile(byte[] contents, char[] documentName) throws IOException { try { ClassFileReader reader = new ClassFileReader(contents, documentName); // first add type references char[] className = replace('/', '.', reader.getName()); // looks like java/lang/String // need to extract the package ...
private void indexClassFile(byte[] contents, char[] documentName) throws IOException { try { ClassFileReader reader = new ClassFileReader(contents, documentName); // first add type references char[] className = replace('/', '.', reader.getName()); // looks like java/lang/String // need to extract the package ...
public static Object getTarget(IContainer container, IPath path, boolean checkResourceExistence) { if (path == null) return null; // lookup - inside the container IResource resource = container.findMember(path); if (resource != null){ if (!checkResourceExistence ||resource.exists()) return resource; return n...
public static Object getTarget(IContainer container, IPath path, boolean checkResourceExistence) { if (path == null) return null; // lookup - inside the container IResource resource = container.findMember(path); if (resource != null){ if (!checkResourceExistence ||resource.exists()) return resource; return n...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException("...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException("...
// public boolean equalTo(Object other) { return true; } // } // interface Equivalent<T> { boolean equalTo(T other); } // interface EqualityComparable { boolean equalTo(Object other); } // class A<T extends Number> { void m(T t) {} } // class B<S extends Integer> extends A<S> { void m(S t) {}} // class ...
// public boolean equalTo(Object other) { return true; } // } // interface Equivalent<T> { boolean equalTo(T other); } // interface EqualityComparable { boolean equalTo(Object other); } // class A<T extends Number> { void m(T t) {} } // class B<S extends Integer> extends A<S> { void m(S t) {}} // class ...
public int getNodeType() { return SYNCHRONIZED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SynchronizedStatement result = new SynchronizedStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadi...
public int getNodeType() { return SYNCHRONIZED_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { SynchronizedStatement result = new SynchronizedStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLead...
package examples; package org.apache.log4j.examples; import java.rmi.Remote; import java.rmi.RemoteException; /** NumberCruncher's factor positive integers. See <a href=doc-files/NumberCruncher.java>source</a> code for more details. @author Ceki G&uuml;lc&uuml; */ public interface NumberCruncher exten...
package examples; package examples; import java.rmi.Remote; import java.rmi.RemoteException; /** NumberCruncher's factor positive integers. See <a href=doc-files/NumberCruncher.java>source</a> code for more details. @author Ceki G&uuml;lc&uuml; */ public interface NumberCruncher extends Remote { /*...
public CompletionOnPackageReference(char[][] tokens , long[] positions) { super(tokens, positions, true); }
public CompletionOnPackageReference(char[][] tokens , long[] positions) { super(tokens, positions, true, AccDefault); }
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean optimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { if (optimizedBranch = (for...
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean optimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { if (optimizedBranch = (for...
public TypeBinding literalType(BlockScope scope) { return BooleanBinding; }
public TypeBinding literalType(BlockScope scope) { return TypeBinding.BOOLEAN; }
public int getNodeType() { return PACKAGE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { PackageDeclaration result = new PackageDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if (this.ast.apiLevel >= ...
public int getNodeType() { return PACKAGE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { PackageDeclaration result = new PackageDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if (this.ast.apiLevel >=...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(r, CreateFil...
public void actionPerformed(ActionEvent evt) { // get selected stuff FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = new CreateFilterOnMessageCommand(getFrameMediator(), r, ...
public String toString(int tab) { return tabString(tab) + "Recovered local variable:\n" + localDeclaration.toString(tab + 1); //$NON-NLS-1$ }
public String toString(int tab) { return tabString(tab) + "Recovered local variable:\n"/*nonNLS*/ + localDeclaration.toString(tab + 1); }
public TypeBinding checkFieldAccess(BlockScope scope) { if (delegateThis == null) return super.checkFieldAccess(scope); FieldBinding fieldBinding = (FieldBinding) binding; bits &= ~RestrictiveFlagMASK; // clear bits bits |= FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (t...
public TypeBinding checkFieldAccess(BlockScope scope) { if (delegateThis == null) return super.checkFieldAccess(scope); FieldBinding fieldBinding = (FieldBinding) binding; bits &= ~RestrictiveFlagMASK; // clear bits bits |= FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (t...
@version $Revision: 1.2 $ /* * JBoss, the OpenSource WebOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.web.catalina; /** The original 3.2 embedded service for backward compatibility @author Scott.Stark@jboss.org @version $Revision: 1.1 $ */ public class Embed...
@version $Revision: 1.2 $ /* * JBoss, the OpenSource WebOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.web.catalina; /** The original 3.2 embedded service for backward compatibility @author Scott.Stark@jboss.org @version $Revision: 1.2 $ */ public class Embed...
public final char[] signature() /* (ILjava/lang/Thread;)Ljava/lang/Object; */ { if (this.signature != null) return this.signature; StringBuffer buffer = new StringBuffer(this.parameters.length + 1 * 20); buffer.append('('); TypeBinding[] targetParameters = this.parameters; boolean isConstructor = isConstructor...
public final char[] signature() /* (ILjava/lang/Thread;)Ljava/lang/Object; */ { if (this.signature != null) return this.signature; StringBuffer buffer = new StringBuffer(this.parameters.length + 1 * 20); buffer.append('('); TypeBinding[] targetParameters = this.parameters; boolean isConstructor = isConstructor...
public void processEnabledSubmissions(boolean force, final Shell newActiveShell) { IWorkbenchSite newActiveWorkbenchSite = null; final IWorkbenchWindow newActiveWorkbenchWindow = workbench .getActiveWorkbenchWindow(); boolean update = false; // Update the...
public void processEnabledSubmissions(boolean force, final Shell newActiveShell) { IWorkbenchSite newActiveWorkbenchSite = null; final IWorkbenchWindow newActiveWorkbenchWindow = workbench .getActiveWorkbenchWindow(); boolean update = false; // Update the...
private void setEditorAreaVisible(boolean visible) { ArrayList workbooks = ((EditorArea)editorArea).getEditorWorkbooks(); for (Iterator iter = workbooks.iterator(); iter.hasNext();) { EditorStack workbook = (EditorStack) iter.next(); workbook.setVisible(visible); EditorPane pane = workbook.getVisibleEditor(); ...
private void setEditorAreaVisible(boolean visible) { ArrayList workbooks = ((EditorSashContainer)editorArea).getEditorWorkbooks(); for (Iterator iter = workbooks.iterator(); iter.hasNext();) { EditorStack workbook = (EditorStack) iter.next(); workbook.setVisible(visible); EditorPane pane = workbook.getVisibleEd...
private TypeDeclaration convert(ISourceType sourceType, CompilationResult compilationResult) { /* create type declaration - can be member type */ TypeDeclaration type = type = new TypeDeclaration(compilationResult); if (sourceType.getEnclosingType() != null) { type.bits |= ASTNode.IsMemberTypeMASK; } type...
private TypeDeclaration convert(ISourceType sourceType, CompilationResult compilationResult) { /* create type declaration - can be member type */ TypeDeclaration type = new TypeDeclaration(compilationResult); if (sourceType.getEnclosingType() != null) { type.bits |= ASTNode.IsMemberTypeMASK; } type.name =...
public TabSrc() { // TODO: Temporarily remove toolbar until src selection // is working better. // super("Source", true); // super("Source", false); _notationName = null; _toolbar.add(NotationComboBox.getInstance()); NotationComboBox.getInstance().addItemListener(this); _toolbar.a...
public TabSrc() { // TODO: Temporarily remove toolbar until src selection // is working better. // super("tab.source", true); // super("Source", false); _notationName = null; _toolbar.add(NotationComboBox.getInstance()); NotationComboBox.getInstance().addItemListener(this); _toolb...
public void save() throws Exception { // we didn't load any header to save if (!isHeaderCacheLoaded()) return; ColumbaLogger.log.info("saving header-cache=" + headerFile); try { writer = new ObjectWriter(headerFile); } catch (Exception e) { if (MainInterface.DEBUG) e.printStackTrace(); } ...
public void save() throws Exception { // we didn't load any header to save if (!isHeaderCacheLoaded()) return; ColumbaLogger.log.info("saving header-cache=" + headerFile); try { writer = new ObjectWriter(headerFile); } catch (Exception e) { if (MainInterface.DEBUG) e.printStackTrace(); } ...
package org.eclipse.ui.internal.presentations.util; /******************************************************************************* * Copyright (c) 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License ...
package org.eclipse.ui.internal.presentations.util; /******************************************************************************* * Copyright (c) 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License ...
public ReplaceEdit[] getModifications(String source) { List result= new ArrayList(); int destIndentLevel= Indents.computeIndentUnits(this.destinationIndent, this.tabWidth, this.indentWidth); if (destIndentLevel == this.sourceIndentLevel) { return (ReplaceEdit[])result.toArray(new ReplaceEdit[result.size()]); ...
public ReplaceEdit[] getModifications(String source) { List result= new ArrayList(); int destIndentLevel= Indents.measureIndentUnits(this.destinationIndent, this.tabWidth, this.indentWidth); if (destIndentLevel == this.sourceIndentLevel) { return (ReplaceEdit[])result.toArray(new ReplaceEdit[result.size()]); ...
private void setBarVisibility(final boolean visible) { WorkbenchWindow window = (WorkbenchWindow) getSite() .getWorkbenchWindow(); boolean layout = false; // don't layout unless things have actually changed if (visible) { // Restore the last 'saved' state boolean coolbarVisible = PrefUtil .getI...
private void setBarVisibility(final boolean visible) { WorkbenchWindow window = (WorkbenchWindow) getSite() .getWorkbenchWindow(); boolean layout = false; // don't layout unless things have actually changed if (visible) { // Restore the last 'saved' state boolean coolbarVisible = PrefUtil .getI...
public void testModify() throws Exception{ ContactModel c = new ContactModel(); c.setNickName("nickname"); Object uid = getSourceFolder().add(c); c.setNickName("new"); getSourceFolder().modify(uid, c); IContactModel c2 = getSourceFolder().get(uid); assertEquals("nichname", "new", c2.getNickName())...
public void testModify() throws Exception{ ContactModel c = new ContactModel(); c.setNickName("nickname"); String uid = getSourceFolder().add(c); c.setNickName("new"); getSourceFolder().modify(uid, c); IContactModel c2 = getSourceFolder().get(uid); assertEquals("nichname", "new", c2.getNickName())...
public String toString() { return "--- CompilationUnit Scope : " + new String(referenceContext.getFileName()); //$NON-NLS-1$ }
public String toString() { return "--- CompilationUnit Scope : "/*nonNLS*/ + new String(referenceContext.getFileName()); }
public void printStackTrace() { if (fThrowable != null) { System.err.println(this); System.err.println("Stack trace of embedded throwable:"); fThrowable.printStackTrace(); } else { super.printStackTrace(); } }
public void printStackTrace() { if (fThrowable != null) { System.err.println(this); System.err.println("Stack trace of embedded throwable:"/*nonNLS*/); fThrowable.printStackTrace(); } else { super.printStackTrace(); } }
public static void main(String argv[]) { if(argv.length != 2) { Usage(); } ProgramInit(argv); double delta; System.out.println(); for(int i = 0; i < CAT_ARRAY.length; i++) { delta = SimpleMessage(CAT_ARRAY[i], SHORT_MSG, runLength); System.out.println("Simple argum...
public static void main(String argv[]) { if(argv.length != 2) { Usage(); } ProgramInit(argv); double delta; System.out.println(); for(int i = 0; i < CAT_ARRAY.length; i++) { delta = SimpleMessage(CAT_ARRAY[i], SHORT_MSG, runLength); System.out.println("Simple argum...
public ObjectName getObjectName( MBeanServer pServer, ObjectName pName ) throws MalformedObjectNameException { return new ObjectName( OBJECT_NAME ); }
public ObjectName getObjectName( MBeanServer pServer, ObjectName pName ) throws MalformedObjectNameException { return OBJECT_NAME; }
public void delay(long millis) { try { Thread.currentThread().sleep(millis); } catch(Exception e) {} } }
public void delay(long millis) { try { Thread.sleep(millis); } catch(Exception e) {} } }
public ARecord(Name name, short dclass, int ttl, InetAddress address) { this(name, dclass, ttl); addr = fromArray(address.getAddress()); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { ARecord rec = new ARecord(name, dclass, ttl); if (...
public ARecord(Name name, short dclass, int ttl, InetAddress address) { this(name, dclass, ttl); addr = fromArray(address.getAddress()); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { ARecord rec = new ARecord(name, dclass, ttl); if (...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope, true /* check bounds*/); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); r...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope, true /* check bounds*/); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); r...
private static LoggingEvent copyForHTML(LoggingEvent event) { String fqnCategory = escape(event.fqnOfCategoryClass); Logger logger = Logger.getLogger(event.getLoggerName()); String threadName = event.getThreadName(); Object msg = event.getMessage(); String ndc = event.getNDC(); Hashtable mdc =...
private static LoggingEvent copyForHTML(LoggingEvent event) { String fqnCategory = escape(event.fqnOfCategoryClass); Logger logger = Logger.getLogger(event.getLoggerName()); String threadName = event.getThreadName(); Object msg = event.getMessage(); String ndc = event.getNDC(); Hashtable mdc =...
private void formatCascadingMessageSends(CascadingMethodInvocationFragmentBuilder builder, BlockScope scope) { int size = builder.size(); MessageSend[] fragments = builder.fragments(); Expression fragment = fragments[0].receiver; int startingPositionInCascade = 1; if (!fragment.isImplicitThis()) { fragmen...
private void formatCascadingMessageSends(CascadingMethodInvocationFragmentBuilder builder, BlockScope scope) { int size = builder.size(); MessageSend[] fragments = builder.fragments(); Expression fragment = fragments[0].receiver; int startingPositionInCascade = 1; if (!fragment.isImplicitThis()) { fragmen...
public static Hashtable getOptions() { Hashtable options = new Hashtable(10); // see #initializeDefaultPluginPreferences() for changing default settings Plugin plugin = getPlugin(); if (plugin != null) { Preferences preferences = getPlugin().getPluginPreferences(); HashSet optionNames = JavaModelMana...
public static Hashtable getOptions() { Hashtable options = new Hashtable(10); // see #initializeDefaultPluginPreferences() for changing default settings Plugin plugin = getPlugin(); if (plugin != null) { Preferences preferences = getPlugin().getPluginPreferences(); HashSet optionNames = JavaModelMana...
public String toString() { StringBuffer buf = new StringBuffer("ModifiedBuilderType("/*nonNLS*/); return buf.append(fOldTSEntry.getType().getName()).append(')').toString(); }
public String toString() { StringBuffer buf = new StringBuffer("ModifiedBuilderType("); //$NON-NLS-1$ return buf.append(fOldTSEntry.getType().getName()).append(')').toString(); }
protected String getMainTaskName() { return Util.bind("operation.moveResourceProgress"/*nonNLS*/); }
protected String getMainTaskName() { return Util.bind("operation.moveResourceProgress"); //$NON-NLS-1$ }
public IResource getUnderlyingResource() throws JavaModelException { if (isWorkingCopy()) return null; return super.getUnderlyingResource(); }
public IResource getUnderlyingResource() throws JavaModelException { if (isWorkingCopy() && !isPrimary()) return null; return super.getUnderlyingResource(); }
private void initTurbine() throws Exception { File directoryFile = new File("./src/test"); String directory = directoryFile.getAbsolutePath(); tc = new TurbineConfig(directory, "TestTurbineResources.properties"); tc.init(); }
private void initTurbine() throws Exception { File directoryFile = new File("src/test"); String directory = directoryFile.getAbsolutePath(); tc = new TurbineConfig(directory, "TestTurbineResources.properties"); tc.init(); }
private String getTemplateBody() throws Exception, CommandCancelledException, IOException { // template folder has uid=107 AbstractMessageFolder templateFolder = (AbstractMessageFolder) FolderTreeModel.getInstance() .getFolder(107); // retrieve headerlist of tempate folder IHeaderList list = templateFo...
private String getTemplateBody() throws Exception, CommandCancelledException, IOException { // template folder has uid=107 AbstractMessageFolder templateFolder = (AbstractMessageFolder) FolderTreeModel.getInstance() .getFolder(107); // retrieve headerlist of tempate folder IHeaderList list = templateFo...
public FolderTreeNode add( XmlElement childNode, FolderTreeNode 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 { if (uid == 100...
public FolderTreeNode add( XmlElement childNode, FolderTreeNode 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 { if (uid == 100...
public void doService(Request req, Response res) throws Exception { // if we are in include, with req==original request // - just use the current sub-request Request subReq=req; if(req.getChild()!=null) subReq=req.getChild(); Context ctx=subReq.getContext(); String pathInfo=subReq.getServletPath();...
public void doService(Request req, Response res) throws Exception { // if we are in include, with req==original request // - just use the current sub-request Request subReq=req; if(req.getChild()!=null) subReq=req.getChild(); Context ctx=subReq.getContext(); String pathInfo=subReq.getServletPath();...
public StringBuffer printStatement(int tab, StringBuffer output) { printIndent(tab, output).append("for ("); //$NON-NLS-1$ //inits if (initializations != null) { for (int i = 0; i < initializations.length; i++) { //nice only with expressions if (i > 0) output.append(", "); //$NON-NLS-1$ initializ...
public StringBuffer printStatement(int tab, StringBuffer output) { printIndent(tab, output).append("for ("); //$NON-NLS-1$ //inits if (initializations != null) { for (int i = 0; i < initializations.length; i++) { //nice only with expressions if (i > 0) output.append(", "); //$NON-NLS-1$ initializ...
public void decodeIndexKey(char[] key) { // Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name) this.pkgName = key; // decode into the pkg name, see matchesDecodedKey() }
public void decodeIndexKey(char[] key) { // Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name) this.pkgName = key; }
public void actionPerformed(ActionEvent evt) { // check if we are online if (ConnectionStateImpl.getInstance().isOnline() == false) { // offline -> go online ConnectionStateImpl.getInstance().setOnline(true); } MailInterface.mailCheckingManager.check(); }
public void actionPerformed(ActionEvent evt) { // check if we are online if (ConnectionStateImpl.getInstance().isOnline() == false) { // offline -> go online ConnectionStateImpl.getInstance().setOnline(true); } MailInterface.mailCheckingManager.checkAll(); }
private static char[] EMPTY_FILE_NAME = CharOperation.NO_CHAR;
public IWorkingCopy[] workingCopies; final static char[] EMPTY_FILE_NAME = CharOperation.NO_CHAR;
public FolderPluginHandler() { super("org.columba.mail.folder", "org/columba/mail/folder/folder.xml"); parentNode = getConfig().getRoot().getElement("folderlist"); }
public FolderPluginHandler() { super("org.columba.mail.folder", "org/columba/mail/plugin/folder.xml"); parentNode = getConfig().getRoot().getElement("folderlist"); }
private ServiceManager() { try { handler = PluginManager.getInstance().getHandler( IExtensionHandlerKeys.ORG_COLUMBA_CORE_SERVICE); } catch (PluginHandlerNotFoundException e) { e.printStackTrace(); } }
private ServiceManager() { try { handler = PluginManager.getInstance().getExtensionHandler( IExtensionHandlerKeys.ORG_COLUMBA_CORE_SERVICE); } catch (PluginHandlerNotFoundException e) { e.printStackTrace(); } }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "break "; //$NON-NLS-1$ if (label != null ) s = s + new String(label) ; return s; }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "break "/*nonNLS*/; if (label != null ) s = s + new String(label) ; return s; }
public static final boolean camelCaseMatch(char[] pattern, int patternStart, int patternEnd, char[] name, int nameStart, int nameEnd) { if (name == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' int iPattern = patternStart; int iName = nameSt...
public static final boolean camelCaseMatch(char[] pattern, int patternStart, int patternEnd, char[] name, int nameStart, int nameEnd) { if (name == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' int iPattern = patternStart; int iName = nameSt...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. ...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. ...
protected void layoutComponents() { JPanel contentPane = new JPanel(new BorderLayout()); setContentPane(contentPane); // Create a FormLayout instance. FormLayout layout = new FormLayout("12dlu, pref, 3dlu, max(40dlu;pref), 3dlu, pref", // 3 columns ""); // create a form builder DefaultFormBuilder...
protected void layoutComponents() { JPanel contentPane = new JPanel(new BorderLayout()); setContentPane(contentPane); // Create a FormLayout instance. FormLayout layout = new FormLayout("12dlu, pref, 3dlu, max(40dlu;pref), 3dlu, pref", // 3 columns ""); // create a form builder DefaultFormBuilder...
public StackPresentation createStandaloneViewPresentation(Composite parent, IStackPresentationSite site, boolean showTitle) { if (showTitle) { return createViewPresentation(parent, site); } else { EmptyTabFolder folder = new EmptyTabFolder(parent); ...
public StackPresentation createStandaloneViewPresentation(Composite parent, IStackPresentationSite site, boolean showTitle) { if (showTitle) { return createViewPresentation(parent, site); } else { EmptyTabFolder folder = new EmptyTabFolder(parent, true); ...
private void correct(char[] argument) throws JavaModelException { try { String source = unit.getSource(); Scanner scanner = new Scanner(); scanner.setSource(source.toCharArray()); scanner.resetTo(correctionStart, correctionEnd); int token = 0; char[] argumentSource = CharOperation.NO_CHAR; ...
private void correct(char[] argument) throws JavaModelException { try { String source = unit.getSource(); Scanner scanner = new Scanner(); scanner.setSource(source.toCharArray()); scanner.resetTo(correctionStart, correctionEnd); int token = 0; char[] argumentSource = CharOperation.NO_CHAR; ...
public Object add(Contact contact) throws Exception { Object uid = generateNextFolderUid();
public Object add(Contact contact) throws Exception { Object uid = generateNextMessageUid();
public void record(IProblem problem, CompilationResult unitResult) { requestor.acceptProblem(problem); } }, false, options.getAssertMode()); this.requestor = requestor; intArrayStack = new int[30][]; }
public void record(IProblem problem, CompilationResult unitResult) { requestor.acceptProblem(problem); } }, false, options.assertMode); this.requestor = requestor; intArrayStack = new int[30][]; }
public String[] getOptionStrings() { return OptionConverter.concatanateArrays(super.getOptionStrings(), new String[] {TO_OPTION, FROM_OPTION, SUBJECT_OPTION, SMTP_HOST_OPTION, BUFFER_SIZE_OPTION, LOCATION_INFO_OPTION }); }
public String[] getOptionStrings() { return OptionConverter.concatanateArrays(super.getOptionStrings(), new String[] {TO_OPTION, FROM_OPTION, SUBJECT_OPTION, SMTP_HOST_OPTION, BUFFER_SIZE_OPTION, EVALUATOR_CLASS_OPTION, LOCATION_INFO_OPTION }); }
public String toString() { return "SourceElementTable(" + fPackageTable + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return "SourceElementTable("/*nonNLS*/ + fPackageTable + ")"/*nonNLS*/; }
public abstract void initialize(IPath containerPath, IJavaProject project) throws JavaModelException; }
public abstract void initialize(IPath containerPath, IJavaProject project) throws CoreException; }
public void testAdd() { double result= fValue1 + fValue2; // forced failure result == 5 assert(result == 6); }
public void testAdd() { double result= fValue1 + fValue2; // forced failure result == 5 assertTrue(result == 6); }
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"); } return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"/*nonNLS*/); } return buffer.toString(); }
protected void findSourceFiles(IResourceDelta sourceDelta, ClasspathMultiDirectory md, int segmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); if (md.exclusionPatterns != n...
protected void findSourceFiles(IResourceDelta sourceDelta, ClasspathMultiDirectory md, int segmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); if (md.exclusionPatterns != n...
public void setComment(String comment) { becomeDetailed(); fComment= comment; fragment(); setHasComment(comment != null); /* see 1FVIJAH */ if (comment != null) { String commentString = new String(comment); if (commentString.indexOf("@deprecated"/*nonNLS*/) >= 0) { fFlags= fFlags | IConstants.AccDeprecated...
public void setComment(String comment) { becomeDetailed(); fComment= comment; fragment(); setHasComment(comment != null); /* see 1FVIJAH */ if (comment != null) { String commentString = new String(comment); if (commentString.indexOf("@deprecated") >= 0) { //$NON-NLS-1$ fFlags= fFlags | IConstants.AccDeprec...
public SyntheticMethodBinding(SourceTypeBinding declaringEnum, char[] selector) { this.declaringClass = declaringEnum; this.selector = selector; this.modifiers = ClassFileConstants.AccFinal | ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; this.tagBits |= TagBits.AnnotationResolved; ...
public SyntheticMethodBinding(SourceTypeBinding declaringEnum, char[] selector) { this.declaringClass = declaringEnum; this.selector = selector; this.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; this.tagBits |= TagBits.AnnotationResolved; this.thrownExceptions = Bindin...
public TypeDeclaration convert(org.eclipse.jdt.internal.compiler.ast.ASTNode[] nodes) { final TypeDeclaration typeDecl = new TypeDeclaration(this.ast); typeDecl.setInterface(false); int nodesLength = nodes == null ? 0 : nodes.length; for (int i = 0; i < nodesLength; i++) { org.eclipse.jdt.internal.compiler....
public TypeDeclaration convert(org.eclipse.jdt.internal.compiler.ast.ASTNode[] nodes) { final TypeDeclaration typeDecl = new TypeDeclaration(this.ast); typeDecl.setInterface(false); int nodesLength = nodes.length; for (int i = 0; i < nodesLength; i++) { org.eclipse.jdt.internal.compiler.ast.ASTNode node = n...
public void execute() { LogLog.info("DBReceiverJob.execute() called"); try { Logger logger; LoggerRepository loggerRepository = getLoggerRepository(); Connection connection = connectionSource.getConnection(); StringBuffer sql = new StringBuffer(); sql.append("SELE...
public void execute() { LogLog.info("DBReceiverJob.execute() called"); try { Logger logger; LoggerRepository loggerRepository = getLoggerRepository(); Connection connection = connectionSource.getConnection(); StringBuffer sql = new StringBuffer(); sql.append("SELE...
public Message send(Message query) throws IOException { if (Options.check("verbose")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getHeader().getOpcode() == Opcode.QUERY) { Record question = query.getQuestion(); if (question != null && question.getType() == Type.AXF...
public Message send(Message query) throws IOException { if (Options.check("verbose")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getHeader().getOpcode() == Opcode.QUERY) { Record question = query.getQuestion(); if (question != null && question.getType() == Type.AXF...
public String toString() { return "ProblemDetail(" + getMessage() + ")"; }
public String toString() { return "ProblemDetail("/*nonNLS*/ + getMessage() + ")"/*nonNLS*/; }
public PackageDeclarationPattern(char[] pkgName, int matchMode, boolean isCaseSensitive) { super(matchMode, isCaseSensitive); this.pkgName = pkgName; }
public PackageDeclarationPattern(char[] pkgName, int matchMode, boolean isCaseSensitive) { super(PKG_DECL_PATTERN, matchMode, isCaseSensitive); this.pkgName = pkgName; }
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-s...
public PropPanelCallEvent() { super("Call event", null, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-s...
private ICompilationUnit[] getWorkingCopies() { ICompilationUnit[] copies; if (this.workingCopies != null) { if (this.workingCopyOwner == null) { copies = JavaModelManager.getJavaModelManager().getWorkingCopies(DefaultWorkingCopyOwner.PRIMARY, false/*don't add primary WCs a second time*/); if (copies == null)...
private ICompilationUnit[] getWorkingCopies() { ICompilationUnit[] copies; if (this.workingCopies != null) { if (this.workingCopyOwner == null) { copies = JavaModelManager.getJavaModelManager().getWorkingCopies(DefaultWorkingCopyOwner.PRIMARY, false/*don't add primary WCs a second time*/); if (copies == null)...
public static Level toLevel(String value, Level defaultValue) { if(value == null) return defaultValue; int hashIndex = value.indexOf('#'); if (hashIndex == -1) { if("NULL".equalsIgnoreCase(value)) { return null; } else { // no class name specified : use standard Level class retur...
public static Level toLevel(String value, Level defaultValue) { if(value == null) return defaultValue; int hashIndex = value.indexOf('#'); if (hashIndex == -1) { if("NULL".equalsIgnoreCase(value)) { return null; } else { // no class name specified : use standard Level class retur...