rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
this.unsatisfiedConditions = unsatisfiedConditions; | this.unsatisfiedConditions = Collections.unmodifiableSet(unsatisfiedConditions); | public ForcedStopException(ServiceName serviceName, Set unsatisfiedConditions) { super("Forced stop and ignored unsatisfied conditons:" + " serviceName=" + serviceName + ", unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsat... |
this.unsatisfiedConditions = unsatisfiedConditions; | this.unsatisfiedConditions = Collections.unmodifiableSet(unsatisfiedConditions); | public UnsatisfiedConditionsException(String message, ServiceName serviceName, Set unsatisfiedConditions) { super(message + ": serviceName=" + serviceName + ": unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsatisfiedConditions = unsatisfiedConditions; ... |
for( Iterator cIt = Scene.v().getClasses().iterator(); cIt.hasNext(); ) { final SootClass c = (SootClass) cIt.next(); handleClass( c ); } Stmt s = null; while(callEdges.hasNext()) { Edge e = (Edge) callEdges.next(); } | public void build() { } | |
Copyright.print(System.out); | Header.print(System.out); | public Main(String[] args) throws IOException { Copyright.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[1] = new LongOpt("line", LongOpt.REQUIRED_ARGUMENT, null, 'l')... |
extractDependencies(beanDefinition); | dependencies = SpringUtil.extractDependencies(beanDefinition, objectNameMap); | public SpringServiceFactory(RootBeanDefinition beanDefinition, Map objectNameMap) throws Exception { this.beanDefinition = beanDefinition; this.objectNameMap = objectNameMap; extractDependencies(beanDefinition); } |
objectName = getObjectName(name); | objectName = SpringUtil.getObjectName(objectNameMap, name); | public Object createService(final ServiceContext serviceContext) throws Exception { Object service = null; try { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ... |
void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException; | void visitBeanDefinition(String beanName, BeanDefinition beanDefinition, Object data) throws BeansException; | void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException; |
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { visitConstructorArgumentValues(beanDefinition.getConstructorArgumentValues()); visitMutablePropertyValues(beanDefinition.getPropertyValues()); | public void visitBeanDefinition(String beanName, BeanDefinition beanDefinition, Object data) throws BeansException { visitBeanDefinition(beanDefinition, data); | public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { visitConstructorArgumentValues(beanDefinition.getConstructorArgumentValues()); visitMutablePropertyValues(beanDefinition.getPropertyValues()); } |
public void visitRuntimeBeanReference(RuntimeBeanReference beanReference) throws BeansException { | public void visitRuntimeBeanReference(RuntimeBeanReference beanReference, Object data) throws BeansException { | public void visitRuntimeBeanReference(RuntimeBeanReference beanReference) throws BeansException { } |
checkRoomsForTimeout(); | private void createFrameIfNeeded() { if (chatFrame != null) { return; } chatFrame = new ChatFrame(); chatFrame.addWindowListener(new WindowAdapter() { public void windowActivated(WindowEvent windowEvent) { stopFlashing(); int sel = getS... | |
try { ChatRoom activeChatRoom = getActiveChatRoom(); if (activeChatRoom == chatRoom) { continue; } } catch (ChatRoomNotFoundException e) { } | public Collection<ChatRoom> getStaleChatRooms() { final List<ChatRoom> staleRooms = new ArrayList<ChatRoom>(); for (ChatRoom chatRoom : getChatRooms()) { long lastActivity = chatRoom.getLastActivity(); long currentTime = System.currentTimeMillis(); long diff = currentT... | |
useTabDefault(room); | public void messageSent(ChatRoom room, Message message) { } | |
Font font = titleLabel.getFont(); | public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); Font font = titleLabel.getFont(); titleLabel.setForeground(Color.blac... | |
Font newFont = font.deriveFont(Font.PLAIN); titleLabel.setFont(newFont); titleLabel.validate(); titleLabel.repaint(); | titleLabel.setFont(defaultFont); | public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); Font font = titleLabel.getFont(); titleLabel.setForeground(Color.blac... |
assert errors != null : "errors is null"; assert !errors.isEmpty() : "errors is empty"; assert assertAllErrors(errors); | if (errors == null) throw new NullPointerException("errors is null"); if (errors.isEmpty()) throw new IllegalArgumentException("errors is empty"); for (ListIterator iterator = errors.listIterator(); iterator.hasNext();) { Object error = iterator.next(); if (error == null) { throw new IllegalArgumentException("Errors el... | public KernelErrorsError(List errors) { assert errors != null : "errors is null"; assert !errors.isEmpty() : "errors is empty"; assert assertAllErrors(errors); this.errors = Collections.unmodifiableList(errors); } |
_broker.stopClient(); | final public void destroy() { if (_alive) { _alive = false; _webContext = null; _log.info("shutdown " + this); } } | |
String classpath = earls[i].getFile(); | String classpath = (new File(earls[i].getFile())).getAbsolutePath(); | protected Java getJava() { if (java == null) { java = (Java)getProject().createTask("java"); java.setTaskName(getTaskName()); java.setClassname(getClassName()); java.setFork(true); java.setDir(getProject().getBaseDir()); /** * We replace %20 with a space character because, for some * reason, when w... |
_variables.clear(); | public void clear() { Iterator i = _initializedTools.entrySet().iterator(); while (i.hasNext()) { Map.Entry m = (Map.Entry) i.next(); ContextTool ct = (ContextTool) m.getKey(); ct.destroy(m.getValue()); } _initializedTools.clear(); if (_prof != null) { stopTim... | |
public ComponentMap(Settings initProps) { _config = initProps; | public ComponentMap() { _config = new Settings(); | public ComponentMap(Settings initProps) { _config = initProps; } |
public void load(String namelist, String suffix) { load(tokenize(namelist), suffix); | public void load(String namelist) { load(tokenize(namelist), ""); | public void load(String namelist, String suffix) { load(tokenize(namelist), suffix); } |
EncodingCache ec = new EncodingCache("UTF8", 11, 3); | EncodingCache ec = new EncodingCache("UTF16-LE", 11, 3); | public static void main(String arg[]) { try { EncodingCache ec = new EncodingCache("UTF8", 11, 3); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = in.readLine()) != null) { s = s.intern(); Sys... |
s = s.intern(); System.out.print("Encoding string: " + s + " --> ["); System.out.write( ec.getEncoding(s) ); | String s1 = s.intern(); byte b[] = ec.getEncoding(s1); String s2 = new String(b, "UTF16-LE"); System.out.print("Encoding string: " + s1 + " --> ["); System.out.print( s2 ); | public static void main(String arg[]) { try { EncodingCache ec = new EncodingCache("UTF8", 11, 3); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = in.readLine()) != null) { s = s.intern(); Sys... |
public TreeContextMenuController(DisplayedDocument displayedDocument) { super(displayedDocument); | public TreeContextMenuController(NoteTree tree) { this.tree = tree; | public TreeContextMenuController(DisplayedDocument displayedDocument) { super(displayedDocument); } |
String className = getClass().getCanonicalName(); if (!methodDescriptor.startsWith(className)) return null; int separator = className.length(); | String controllerSignature = getControllerSignature(); if (!methodDescriptor.startsWith(controllerSignature)) return null; int separator = controllerSignature.length(); | protected Method getMethod(String methodDescriptor) { String className = getClass().getCanonicalName(); if (!methodDescriptor.startsWith(className)) return null; int separator = className.length(); try { return getClass().getMethod(methodDescriptor.substring(separator + 1), METHOD_ARGS); } catch (NoSuchMethodEx... |
IncludeDirective(Object fileName) { | IncludeDirective(Macro fileName) { | IncludeDirective(Object fileName) { _fileName = fileName; } |
public static Object build(BuildContext rc, Object target) | public static Object build(BuildContext rc, Object target) throws BuildException | public static Object build(BuildContext rc, Object target) { IncludeDirective id = new IncludeDirective(target); if (! (target instanceof Macro)) { try { return (id.evaluate(null)); } catch (Exception e) { // try again at runtime } } retur... |
IncludeDirective id = new IncludeDirective(target); if (! (target instanceof Macro)) { | if (target instanceof Macro) { return new IncludeDirective((Macro) target); } else { if (target == null) { throw new BuildException("Cannot #include null filename"); } | public static Object build(BuildContext rc, Object target) { IncludeDirective id = new IncludeDirective(target); if (! (target instanceof Macro)) { try { return (id.evaluate(null)); } catch (Exception e) { // try again at runtime } } retur... |
return (id.evaluate(null)); } catch (Exception e) { | return getFile(rc,target.toString()); } catch(GetFileException e) { throw new BuildException(e.getMessage()); | public static Object build(BuildContext rc, Object target) { IncludeDirective id = new IncludeDirective(target); if (! (target instanceof Macro)) { try { return (id.evaluate(null)); } catch (Exception e) { // try again at runtime } } retur... |
} return id; | } | public static Object build(BuildContext rc, Object target) { IncludeDirective id = new IncludeDirective(target); if (! (target instanceof Macro)) { try { return (id.evaluate(null)); } catch (Exception e) { // try again at runtime } } retur... |
Object fname = null; | Object fname = _fileName.evaluate(context); if (fname == null) { throw new InvalidContextException( "#include could not resolve filename: " + "target argument resolved to a null."); } | final public Object evaluate(Context context) throws InvalidContextException { Object fname = null; try { fname = (_fileName instanceof Macro) ? ((Macro) _fileName).evaluate(context) : _fileName; if (fname == null) { throw new InvalidContextException("Attempt to... |
fname = (_fileName instanceof Macro) ? ((Macro) _fileName).evaluate(context) : _fileName; if (fname == null) { throw new InvalidContextException("Attempt to include " + _fileName + " which evaluates to null"); } return context.getBroker().getValue("url",fname.toString()); } catch (NotFoundException e) { throw new Inva... | return getFile(context, fname.toString()); } catch (GetFileException e) { throw new InvalidContextException(e.getMessage()); | final public Object evaluate(Context context) throws InvalidContextException { Object fname = null; try { fname = (_fileName instanceof Macro) ? ((Macro) _fileName).evaluate(context) : _fileName; if (fname == null) { throw new InvalidContextException("Attempt to... |
pref.setSpellCheckerEnabled(!panel.isSpellCheckerOn()); pref.setChatRoomNotifications(!panel.isGroupChatNotificationsOn()); | pref.setSpellCheckerEnabled(panel.isSpellCheckerOn()); pref.setChatRoomNotifications(panel.isGroupChatNotificationsOn()); | public void commit() { LocalPreferences pref = SettingsManager.getLocalPreferences(); pref.setTimeDisplayedInChat(panel.getShowTime()); pref.setSpellCheckerEnabled(!panel.isSpellCheckerOn()); pref.setChatRoomNotifications(!panel.isGroupChatNotificationsOn()); pref.setHideChatHisto... |
public RubyFile(IRuby runtime, String path, final Reader reader) { this(runtime, path, new InputStream() { public int read() throws IOException { return reader.read(); } }); | public RubyFile(IRuby runtime, RubyClass type) { super(runtime, type); | public RubyFile(IRuby runtime, String path, final Reader reader) { this(runtime, path, new InputStream() { public int read() throws IOException { return reader.read(); } }); } |
addArg("-d"); | addArg("--destination"); | public void execute() throws BuildException { initArgs(); if (toDir != null) { addArg("-d"); addArg(toDir.toString()); } // TODO: ignoreRegex.setRegex() is never called if (ignoreRegex != null) { addArg("-ignore"); addArg(ignoreRegex.getRegex()); } Set filenames = new HashSet(); Iterator i = fileSets... |
addArg("-ignore"); | addArg("--ignore"); | public void execute() throws BuildException { initArgs(); if (toDir != null) { addArg("-d"); addArg(toDir.toString()); } // TODO: ignoreRegex.setRegex() is never called if (ignoreRegex != null) { addArg("-ignore"); addArg(ignoreRegex.getRegex()); } Set filenames = new HashSet(); Iterator i = fileSets... |
addArg("-basedir"); | addArg("--basedir"); | public void execute() throws BuildException { initArgs(); if (toDir != null) { addArg("-d"); addArg(toDir.toString()); } // TODO: ignoreRegex.setRegex() is never called if (ignoreRegex != null) { addArg("-ignore"); addArg(ignoreRegex.getRegex()); } Set filenames = new HashSet(); Iterator i = fileSets... |
Object nodeKey; | public Object get(Object key) { int hash = (System.identityHashCode(key) & 0x7FFFFFFF) % tab.length; Node last = null; Object nodeKey; synchronized (locks[hash]) { Node node = tab[hash]; while (node != null) { if (node.get() == key) { if (last != null) { ... | |
boolean found = false; | public void put(Object key, Object value) { processQueue(); if (key == null) { return; } if (value == null) { remove(key); return; } int hash = (System.identityHashCode(key) & 0x7FFFFFFF) % tab.length; boolean found = false; synchronized (locks[hash]) {... | |
if (directory == null) { | if (baseDir == null) { | public void afterPropertiesSet() throws Exception { if (classLoader == null) { classLoader = getClass().getClassLoader(); } if (directory == null) { log.warn("No directory specified so using current directory"); directory = new File("."); } directo... |
directory = new File("."); | baseDir = new File("."); | public void afterPropertiesSet() throws Exception { if (classLoader == null) { classLoader = getClass().getClassLoader(); } if (directory == null) { log.warn("No directory specified so using current directory"); directory = new File("."); } directo... |
directory = directory.getAbsoluteFile(); log.info("Starting to load components from: " + directory); | baseDir = baseDir.getAbsoluteFile(); log.info("Starting to load components from: " + baseDir); | public void afterPropertiesSet() throws Exception { if (classLoader == null) { classLoader = getClass().getClassLoader(); } if (directory == null) { log.warn("No directory specified so using current directory"); directory = new File("."); } directo... |
processDirectory(classLoader, "", directory); | processDirectory("", classLoader, applicationContext, baseDir); | public void afterPropertiesSet() throws Exception { if (classLoader == null) { classLoader = getClass().getClassLoader(); } if (directory == null) { log.warn("No directory specified so using current directory"); directory = new File("."); } directo... |
protected void createServiceForFile(String name, File file, ClassLoader classLoader) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { String fileName = file.getName(); ServiceFactory serviceFactory = null; if (fileName.equalsIgnoreCase("spring.xml") || fileName.equalsIgn... | protected void createServiceForFile(String name, File file, ClassLoader classLoader, ApplicationContext parentContext) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { if (isSpringConfigFile(file)) { System.setProperty("xbean.current.dir", file.getAbsolutePath()); ... | protected void createServiceForFile(String name, File file, ClassLoader classLoader) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { String fileName = file.getName(); ServiceFactory serviceFactory = null; if (fileName.equalsIgnoreCase... |
log.info("Ignoring file: " + fileName + " in directory: " + file.getParent()); } if (serviceFactory != null) { log.info("Registering spring services service: " + name + " from: " + file.getAbsolutePath() + " into the Kernel"); kernel.registerService(new StringServiceName(name), serviceFactory, classLoader); | if (showIgnoredFiles) { log.info("Ignoring file: " + file.getName() + " in directory: " + file.getParent()); } | protected void createServiceForFile(String name, File file, ClassLoader classLoader) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { String fileName = file.getName(); ServiceFactory serviceFactory = null; if (fileName.equalsIgnoreCase... |
protected void processDirectory(ClassLoader classLoader, String parentName, File directory) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { | protected void processDirectory(String parentName, ClassLoader classLoader, ApplicationContext parentContext, File directory) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { log.debug("Processing directory: " + directory); | protected void processDirectory(ClassLoader classLoader, String parentName, File directory) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { File[] files = directory.listFiles(); if (files == null) { return; } // lets... |
if (isClassLoaderDirectory(file)) { continue; | if (!isClassLoaderDirectory(file) && !file.isDirectory()) { String name = getChildName(parentName, file); createServiceForFile(name, file, classLoader, parentContext); | protected void processDirectory(ClassLoader classLoader, String parentName, File directory) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { File[] files = directory.listFiles(); if (files == null) { return; } // lets... |
String name = getChildName(parentName, file); if (file.isDirectory()) { processDirectory(classLoader, name, file); } else { createServiceForFile(name, file, classLoader); | } for (int i = 0; i < files.length; i++) { File file = files[i]; if (!isClassLoaderDirectory(file) && file.isDirectory()) { String name = getChildName(parentName, file); processDirectory(name, classLoader, parentContext, file); | protected void processDirectory(ClassLoader classLoader, String parentName, File directory) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { File[] files = directory.listFiles(); if (files == null) { return; } // lets... |
processDirectory(classLoader, "", directory); | String name = ""; if (applicationContext != null) { name = applicationContext.getDisplayName(); } processDirectory(name, classLoader, applicationContext, baseDir); | public void run() { try { processDirectory(classLoader, "", directory); } catch (Exception e) { log.error("Failed to deploy services: " + e, e); } } |
public Wiki(String propertiesFilename) throws Exception { if (propertiesFilename == null) propertiesFilename = DEFAULT_PROPERTIES; create(propertiesFilename); _dateStarted = new Date(); | public Wiki() throws Exception { this (DEFAULT_PROPERTIES); | public Wiki(String propertiesFilename) throws Exception { if (propertiesFilename == null) propertiesFilename = DEFAULT_PROPERTIES; create(propertiesFilename); _dateStarted = new Date(); } |
JUnitXMLHelper.validate(new File(PATH_TO_XML_REPORT)); | JUnitXMLHelper.readXmlFile(new File(PATH_TO_XML_REPORT), true); | public void testXMLReportValidity() throws Exception { String[] args; // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile().getAbsolutePath(); // Then we need to generate the XML report args = new String[] { "--forma... |
JUnitXMLHelper.validate(coverageFile); | JUnitXMLHelper.readXmlFile(coverageFile, true); | public void testXMLReportWithNonSourceLines() throws Exception { ProjectData projectData = new ProjectData(); // Adding line to the project data that hasn't been yet marked as source line ClassData cd = projectData.getOrCreateClassData(XMLReport.class.getName()); cd.touch(7777); File reportDir = File.createTempF... |
boolean done = fullClassNames.contains(name); ClassData classData = new ClassData(name); if (!done) { | ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); | public ClassData getOrCreateClassData(String name) { boolean done = fullClassNames.contains(name); ClassData classData = new ClassData(name); if (!done) { addClassData(classData); fullClassNames.add(name); } else { classData = getClassData(name); } return classData; } |
fullClassNames.add(name); } else { classData = getClassData(name); | public ClassData getOrCreateClassData(String name) { boolean done = fullClassNames.contains(name); ClassData classData = new ClassData(name); if (!done) { addClassData(classData); fullClassNames.add(name); } else { classData = getClassData(name); } return classData; } | |
public XMLReport(Coverage coverage, File outputDir, File sourceDirectory) | public XMLReport(CoverageReport coverage, File outputDir, File sourceDirectory) | public XMLReport(Coverage coverage, File outputDir, File sourceDirectory) throws IOException { pw = new PrintWriter(new FileWriter(new File(outputDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); if (sourceDirectory == null) { println("<coverage>"); } else { println("<coverage... |
&& (obj.getClass().isAssignableFrom( context.getBroker().classForName(className))); | && (context.getBroker().classForName(className).isAssignableFrom( obj.getClass())); | public boolean isInstanceOf(Object obj, String className) { try { return (obj != null && className != null) && (obj.getClass().isAssignableFrom( context.getBroker().classForName(className))); } catch (ClassNotFoundException cnfe) { context.getBroker().getLog("... |
return jjStartNfaWithStates_3(0, 23, 0); | jjmatchedKind = 23; return jjMoveStringLiteralDfa1_3(0x4000L); | private final int jjMoveStringLiteralDfa0_3(){ switch(curChar) { case 34: return jjStopAtPos(0, 24); case 35: return jjStartNfaWithStates_3(0, 23, 0); case 36: return jjStopAtPos(0, 20); case 39: return jjStopAtPos(0, 25); case 40: return jjStopAtPos(... |
case 123: return jjStopAtPos(0, 15); | private final int jjMoveStringLiteralDfa0_3(){ switch(curChar) { case 34: return jjStopAtPos(0, 24); case 35: return jjStartNfaWithStates_3(0, 23, 0); case 36: return jjStopAtPos(0, 20); case 39: return jjStopAtPos(0, 25); case 40: return jjStopAtPos(... | |
return jjMoveStringLiteralDfa1_4(0x23000L); | return jjMoveStringLiteralDfa1_4(0x26000L); | private final int jjMoveStringLiteralDfa0_4(){ switch(curChar) { case 35: jjmatchedKind = 23; return jjMoveStringLiteralDfa1_4(0x23000L); case 36: return jjStopAtPos(0, 20); case 92: return jjStartNfaWithStates_4(0, 22, 2); case 123: return jjStopAtPos(0, ... |
return jjStopAtPos(0, 14); | return jjStopAtPos(0, 15); | private final int jjMoveStringLiteralDfa0_4(){ switch(curChar) { case 35: jjmatchedKind = 23; return jjMoveStringLiteralDfa1_4(0x23000L); case 36: return jjStopAtPos(0, 20); case 92: return jjStartNfaWithStates_4(0, 22, 2); case 123: return jjStopAtPos(0, ... |
return jjStopAtPos(0, 15); | return jjStopAtPos(0, 12); | private final int jjMoveStringLiteralDfa0_4(){ switch(curChar) { case 35: jjmatchedKind = 23; return jjMoveStringLiteralDfa1_4(0x23000L); case 36: return jjStopAtPos(0, 20); case 92: return jjStartNfaWithStates_4(0, 22, 2); case 123: return jjStopAtPos(0, ... |
case 98: return jjMoveStringLiteralDfa2_3(active0, 0x4000L); | private final int jjMoveStringLiteralDfa1_3(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_3(0, active0); return 1; } switch(curChar) { case 61: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(1, 37); ... | |
return jjMoveStringLiteralDfa2_4(active0, 0x1000L); | return jjMoveStringLiteralDfa2_4(active0, 0x4000L); | private final int jjMoveStringLiteralDfa1_4(long active0){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(0, active0); return 1; } switch(curChar) { case 35: if ((active0 & 0x20000L) != 0L) return jjStopAtPos(1, 17); ... |
case 101: return jjMoveStringLiteralDfa3_3(active0, 0x4000L); | private final int jjMoveStringLiteralDfa2_3(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_3(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_3(1, active0); return 2; } switch(curChar) { case 108: ... | |
return jjMoveStringLiteralDfa3_4(active0, 0x1000L); | return jjMoveStringLiteralDfa3_4(active0, 0x4000L); | private final int jjMoveStringLiteralDfa2_4(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_4(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(1, active0); return 2; } switch(curChar) { case 101: ... |
case 103: return jjMoveStringLiteralDfa4_3(active0, 0x4000L); | private final int jjMoveStringLiteralDfa3_3(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_3(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_3(2, active0); return 3; } switch(curChar) { case 101: ... | |
return jjMoveStringLiteralDfa4_4(active0, 0x1000L); | return jjMoveStringLiteralDfa4_4(active0, 0x4000L); | private final int jjMoveStringLiteralDfa3_4(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_4(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(2, active0); return 3; } switch(curChar) { case 100: ... |
case 105: return jjMoveStringLiteralDfa5_3(active0, 0x4000L); | private final int jjMoveStringLiteralDfa4_3(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_3(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_3(3, active0); return 4; } switch(curChar) { case 101: ... | |
return jjMoveStringLiteralDfa5_4(active0, 0x1000L); | return jjMoveStringLiteralDfa5_4(active0, 0x4000L); | private final int jjMoveStringLiteralDfa4_4(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_4(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(3, active0); return 4; } switch(curChar) { case 105: ... |
if ((active0 & 0x1000L) != 0L) return jjStopAtPos(5, 12); | if ((active0 & 0x4000L) != 0L) return jjStopAtPos(5, 14); | private final int jjMoveStringLiteralDfa5_4(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_4(3, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(4, active0); return 5; } switch(curChar) { case 110: ... |
if ((active0 & 0x800000L) != 0L) | if ((active0 & 0x804000L) != 0L) | private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x800000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L... |
case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; | private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x800000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L... | |
displayedNote.setTab(this); | public NoteTab(final CTabFolder parent, Listener l, DisplayedNote displayedNote) { this.displayedNote = displayedNote; tabItem = new CTabItem(parent, SWT.NONE); tabItem.setText(displayedNote.getName()); tabItem.setData(this); tabItem.addDisposeListener(this); text = new Text(parent, SWT.MULTI | SWT.WRAP); text.... | |
displayedNote.setTab(null); | displayedNote.tabDisposed(); | public void widgetDisposed(DisposeEvent e) { text.dispose(); displayedNote.setTab(null); } |
ResourceUtils.resLabel(usernameLabel, usernameField, SparkRes.getString(SparkRes.LOGIN_DIALOG_USERNAME)); ResourceUtils.resLabel(passwordLabel, passwordField, SparkRes.getString(SparkRes.LOGIN_DIALOG_PASSWORD)); | ResourceUtils.resLabel(usernameLabel, usernameField, Res.getString("label.username")); ResourceUtils.resLabel(passwordLabel, passwordField, Res.getString("label.password")); | LoginPanel() { //setBorder(BorderFactory.createTitledBorder("Sign In Now")); ResourceUtils.resButton(savePasswordBox, Res.getString("checkbox.save.password")); ResourceUtils.resButton(autoLoginBox, Res.getString("checkbox.auto.login")); ResourceUtils.resLabel(serverLa... |
ResourceUtils.resButton(loginButton, SparkRes.getString(SparkRes.LOGIN_DIALOG_LOGIN)); | ResourceUtils.resButton(loginButton, Res.getString("title.login")); | LoginPanel() { //setBorder(BorderFactory.createTitledBorder("Sign In Now")); ResourceUtils.resButton(savePasswordBox, Res.getString("checkbox.save.password")); ResourceUtils.resButton(autoLoginBox, Res.getString("checkbox.auto.login")); ResourceUtils.resLabel(serverLa... |
return usernameField.getText(); | return StringUtils.escapeNode(usernameField.getText().toLowerCase()); | public String getUsername() { return usernameField.getText(); } |
throw new BuildException("dependent: " + e); | Engine.log.exception(t); throw new BuildException("failure during build: " + t); | public final Object build(BuildContext rc) throws BuildException { // collect the arguments Object args[] = new Object[_buildArgs]; { int i = 0; args[i++] = rc; if ( hasCondition() ) { Object cond = (_condition instanceof Builder) ? ((Builder) _... |
throw new BuildException("dependent: " + e); | throw new BuildException("failed to build: " + e); | public final Object build(BuildContext rc) throws BuildException { // collect the arguments Object args[] = new Object[_buildArgs]; { int i = 0; args[i++] = rc; if ( hasCondition() ) { Object cond = (_condition instanceof Builder) ? ((Builder) _... |
Iterator it = sourceFileData.getChildren().iterator(); | Iterator it = sourceFileData.getClasses().iterator(); | private void dumpClasses(SourceFileData sourceFileData) { Iterator it = sourceFileData.getChildren().iterator(); while (it.hasNext()) { dumpClass((ClassData)it.next()); } } |
dumpLines(classData.getChildren()); | dumpLines(classData.getLines()); | private void dumpLines(ClassData classData) { dumpLines(classData.getChildren()); } |
Iterator it = projectData.getChildren().iterator(); | Iterator it = projectData.getPackages().iterator(); | private void dumpPackages(ProjectData projectData) { println("<packages>"); increaseIndentation(); Iterator it = projectData.getChildren().iterator(); while (it.hasNext()) { dumpPackage((PackageData)it.next()); } decreaseIndentation(); println("</packages>"); } |
Iterator it = packageData.getChildren().iterator(); | Iterator it = packageData.getSourceFiles().iterator(); | private void dumpSourceFiles(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getChildren().iterator(); while (it.hasNext()) { dumpClasses((SourceFileData)it.next()); } decreaseIndentation(); println("</classes>"); } |
metadataManagerName = ServiceName.createName(":j2eeType=MetadataManager"); List metadataProviders = new ArrayList(2); metadataProviders.add(new GeronimoMetadataProvider()); metadataProviders.add(new PropertiesMetadataProvider()); metadataManager = new SimpleMetadataManager(metadataProviders); kernel.loadService(metadat... | public KernelBridge(String kernelName) { try { ClassLoader classLoader = getClass().getClassLoader(); // normally we would use the KernelFactory, but geronimo will only work with the simple kernel kernel = new SimpleKernel(kernelName); dependencyManagerBridge = new... | |
public org.apache.geronimo.gbean.GBeanData getGBeanData(ObjectName name) throws org.apache.geronimo.kernel.GBeanNotFoundException{ ServiceFactory serviceFactory = getServiceFactory(name); | public org.apache.geronimo.gbean.GBeanData getGBeanData(ObjectName objectName) throws org.apache.geronimo.kernel.GBeanNotFoundException{ ServiceFactory serviceFactory = getServiceFactory(objectName); | public org.apache.geronimo.gbean.GBeanData getGBeanData(ObjectName name) throws org.apache.geronimo.kernel.GBeanNotFoundException{ ServiceFactory serviceFactory = getServiceFactory(name); if (serviceFactory instanceof GeronimoServiceFactory) { GeronimoServiceFactory geronimoServiceFactory =... |
return GeronimoUtil.createGBeanData(geronimoServiceFactory.getGBeanDefinition()); | return GeronimoUtil.createGBeanData(objectName, geronimoServiceFactory); | public org.apache.geronimo.gbean.GBeanData getGBeanData(ObjectName name) throws org.apache.geronimo.kernel.GBeanNotFoundException{ ServiceFactory serviceFactory = getServiceFactory(name); if (serviceFactory instanceof GeronimoServiceFactory) { GeronimoServiceFactory geronimoServiceFactory =... |
return createGBeanData(name); | return createGBeanData(objectName); | public org.apache.geronimo.gbean.GBeanData getGBeanData(ObjectName name) throws org.apache.geronimo.kernel.GBeanNotFoundException{ ServiceFactory serviceFactory = getServiceFactory(name); if (serviceFactory instanceof GeronimoServiceFactory) { GeronimoServiceFactory geronimoServiceFactory =... |
return GeronimoUtil.createGBeanInfo(geronimoServiceFactory.getGBeanDefinition()); | return GeronimoUtil.createGBeanInfo(geronimoServiceFactory); | public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(ObjectName name) throws org.apache.geronimo.kernel.GBeanNotFoundException { ServiceFactory serviceFactory = getServiceFactory(name); if (serviceFactory instanceof GeronimoServiceFactory) { GeronimoServiceFactory geronimoServiceFactory ... |
GBeanDefinition geronimoBeanDefinition = GeronimoUtil.createGeronimoBeanDefinition(gbeanData, classLoader); GeronimoServiceFactory geronimoServiceFactory = new GeronimoServiceFactory(proxyManager, geronimoBeanDefinition); | GeronimoServiceFactory geronimoServiceFactory = null; try { geronimoServiceFactory =GeronimoUtil.createGeronimoServiceFactory(gbeanData, classLoader, metadataManager, proxyManager); } catch (Exception e) { throw new org.apache.geronimo.kernel.InternalKernelException(e); } | public void loadGBean(org.apache.geronimo.gbean.GBeanData gbeanData, ClassLoader classLoader) throws org.apache.geronimo.kernel.GBeanAlreadyExistsException { ObjectName objectName = gbeanData.getName(); GBeanDefinition geronimoBeanDefinition = GeronimoUtil.createGeronimoBeanDefinition(gbeanData, class... |
try { kernel.stopService(metadataManagerName); kernel.unloadService(metadataManagerName); } catch (ServiceNotFoundException e) { } | public void shutdown() { try { kernel.stopService(proxyManagerName); kernel.unloadService(proxyManagerName); } catch (ServiceNotFoundException e) { // igore service has already been removed } try { kernel.stopService(serviceInvokerManagerName);... | |
public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); | public static GBeanData createGBeanData(ObjectName objectName, GeronimoServiceFactory serviceFactory) { RootBeanDefinition beanDefinition = serviceFactory.getBeanDefinition(); Set persistentProperties = serviceFactory.getPersistentProperties(); GBeanData gbeanData = new GBeanData(objectName, createGBeanInfo(serviceFact... | public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties ... |
PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); | PropertyValue[] properties = beanDefinition.getPropertyValues().getPropertyValues(); | public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties ... |
gbeanData.setAttribute(propertyValue.getName(), propertyValue.getValue()); | if (persistentProperties.contains(propertyValue.getName())) { gbeanData.setAttribute(propertyValue.getName(), propertyValue.getValue()); } | public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties ... |
PropertyValue[] dynamicProperties = gBeanDefinition.getDynamicPropertyValues().getPropertyValues(); for (int i = 0; i < dynamicProperties.length; i++) { PropertyValue dynamicPropertyValue = dynamicProperties[i]; gbeanData.setAttribute(dynamicPropertyValue.getName(), dynamicPropertyValue.getValue()); } for (Iterator i... | for (Iterator iterator = serviceFactory.getDynamicProperties().entrySet().iterator(); iterator.hasNext();) { | public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties ... |
ConstructorArgumentValues.ValueHolder valueHolder = (ConstructorArgumentValues.ValueHolder) entry.getValue(); String constructorArgName; if (valueHolder instanceof NamedValueHolder) { NamedValueHolder namedValueHolder = (NamedValueHolder) valueHolder; constructorArgName = namedValueHolder.getName(); } else { int index... | String propertyName = (String) entry.getKey(); Object propertyValue = entry.getValue(); gbeanData.setAttribute(propertyName, propertyValue); | public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties ... |
public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { | public static GBeanInfo createGBeanInfo(GeronimoServiceFactory serviceFactory) { RootBeanDefinition beanDefinition = serviceFactory.getBeanDefinition(); Set persistentProperties = serviceFactory.getPersistentProperties(); | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); | PropertyValue[] properties = beanDefinition.getPropertyValues().getPropertyValues(); | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
attributeInfos.add(new GAttributeInfo(propertyValue.getName(), | String propertyName = propertyValue.getName(); attributeInfos.add(new GAttributeInfo(propertyName, | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
true, | persistentProperties.contains(propertyName), | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
PropertyValue[] dynamicProperties = gBeanDefinition.getDynamicPropertyValues().getPropertyValues(); for (int i = 0; i < dynamicProperties.length; i++) { PropertyValue dynamicPropertyValue = dynamicProperties[i]; attributeInfos.add(new DynamicGAttributeInfo(dynamicPropertyValue.getName(), | for (Iterator iterator = serviceFactory.getDynamicProperties().keySet().iterator(); iterator.hasNext();) { String propertyName = (String) iterator.next(); attributeInfos.add(new DynamicGAttributeInfo(propertyName, | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
int maxIndex = -1; for (Iterator iterator = gBeanDefinition.getConstructorArgumentValues().getIndexedArgumentValues().keySet().iterator(); iterator.hasNext();) { int index = ((Integer) iterator.next()).intValue(); if (index > maxIndex) maxIndex = index; } String[] constructorArgs = new String[maxIndex + 1]; for (Iterat... | return new GBeanInfo(beanDefinition.getBeanClassName(), | public static GBeanInfo createGBeanInfo(GBeanDefinition gBeanDefinition) { // add the normal properties Set attributeInfos = new HashSet(); PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { Prope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.