bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private void bookmarkRoom(String serviceName, Tree serviceTree) { int selectedRow = roomsTable.getSelectedRow(); if (-1 == selectedRow) { JOptionPane.showMessageDialog(dlg, Res.getString("message.select.add.room.to.add"), Res.getString("title.group.chat"), JOptionPane.INFORMATION_MESSAGE); ... | private void bookmarkRoom(String serviceName, Tree serviceTree) { int selectedRow = roomsTable.getSelectedRow(); if (-1 == selectedRow) { JOptionPane.showMessageDialog(dlg, Res.getString("message.select.add.room.to.add"), Res.getString("title.group.chat"), JOptionPane.INFORMATION_MESSAGE); ... | 3,231,317 |
private void bookmarkRoom(String serviceName, Tree serviceTree) { int selectedRow = roomsTable.getSelectedRow(); if (-1 == selectedRow) { JOptionPane.showMessageDialog(dlg, Res.getString("message.select.add.room.to.add"), Res.getString("title.group.chat"), JOptionPane.INFORMATION_MESSAGE); ... | private void bookmarkRoom(String serviceName, Tree serviceTree) { int selectedRow = roomsTable.getSelectedRow(); if (-1 == selectedRow) { JOptionPane.showMessageDialog(dlg, Res.getString("message.select.add.room.to.add"), Res.getString("title.group.chat"), JOptionPane.INFORMATION_MESSAGE); ... | 3,231,318 |
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startO... | public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclusive) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startOf... | 3,231,319 |
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startO... | public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startO... | 3,231,320 |
public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("resources/graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | 3,231,321 |
public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | 3,231,322 |
public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | 3,231,323 |
public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | public void tryLogin(MainPanel v) { this.view = v; // Display the initial login dialog displayLoginDialog(view); view.statusBar.setStatusIcon("graphx/server_trying16.png", "Trying to connect."); try { if (!isValidLogin()) { ... | 3,231,324 |
public TimedReloadContext(CacheReloadContext reloadContext,long checkInterval) { super(); this.reloadContext = reloadContext; this.checkInterval = checkInterval; this.nextCheck = now + checkInterval; } | public TimedReloadContext(CacheReloadContext reloadContext,long checkInterval) { super(); this.reloadContext = reloadContext; this.checkInterval = checkInterval; this.nextCheck = Clock.TIME + checkInterval; } | 3,231,325 |
public boolean shouldReload() { //long time = System.currentTimeMillis(); if (now >= nextCheck) { nextCheck = now + checkInterval; return reloadContext.shouldReload(); } else { return false; } } | public boolean shouldReload() { //long time = System.currentTimeMillis(); if (now >= nextCheck) { nextCheck = now + checkInterval; return reloadContext.shouldReload(); } else { return false; } } | 3,231,326 |
public ZlibInflate(IRubyObject caller) { super(); flater = new Inflater(); collected = new StringBuffer(); runtime = caller.getRuntime(); } | public ZlibInflate(IRubyObject caller) { super(); flater = new Inflater(true); collected = new StringBuffer(); runtime = caller.getRuntime(); } | 3,231,327 |
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".rb")) { // Not supported yet // ruby.getInterpreter().load((RubyString)arg1, false); System.err.println("[BUG] Not supported yet."); } else if (arg1.getValu... | public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".rb")) { // Not supported yet // ruby.getInterpreter().load((RubyString)arg1, false); ruby.getInterpreter().load((RubyString)arg1, false); } else if (arg1.ge... | 3,231,329 |
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".rb")) { // Not supported yet // ruby.getInterpreter().load((RubyString)arg1, false); System.err.println("[BUG] Not supported yet."); } else if (arg1.getValu... | public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".rb")) { // Not supported yet // ruby.getInterpreter().load((RubyString)arg1, false); System.err.println("[BUG] Not supported yet."); } else if (arg1.getValu... | 3,231,330 |
private void displayHint(MouseEvent e) { xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if ( exec != currentExecution && pressSelected == false) { currentExecution = exec; MouseOverChainExecutionEvent event; ChainExecutionData execution = null; if (exec != null) execution =... | private void displayHint(MouseEvent e) { xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if ( exec != currentExecution && pressSelected == false) { currentExecution = exec; MouseOverChainExecutionEvent event; ChainExecutionData execution = null; if (exec != null) execution =... | 3,231,331 |
private void displayHint(MouseEvent e) { xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if ( exec != currentExecution && pressSelected == false) { currentExecution = exec; MouseOverChainExecutionEvent event; ChainExecutionData execution = null; if (exec != null) execution =... | private void displayHint(MouseEvent e) { xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if ( exec != currentExecution && pressSelected == false) { currentExecution = exec; MouseOverChainExecutionEvent event; ChainExecutionData execution = null; if (exec != null) execution =... | 3,231,332 |
public void handlePopup(MouseEvent e) { postPopup = true; xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if (exec == null) return; ChainExecutionData execData = exec.getChainExecution(); System.err.println("viewing results for execution "+execData.getID()); String name = execD... | public void handlePopup(MouseEvent e) { postPopup = true; xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if (exec == null) return; ChainExecutionData execData = exec.getChainExecution(); System.err.println("viewing results for execution "+execData.getID()); String name = execD... | 3,231,334 |
public void handlePopup(MouseEvent e) { postPopup = true; xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if (exec == null) return; ChainExecutionData execData = exec.getChainExecution(); System.err.println("viewing results for execution "+execData.getID()); String name = execD... | public void handlePopup(MouseEvent e) { postPopup = true; xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if (exec == null) return; ChainExecutionData execData = exec.getChainExecution(); System.err.println("viewing results for execution "+execData.getID()); String name = execD... | 3,231,335 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; if (gridModel == null) return; gridModel.drawAxes(g2); if (slider != null) { gridModel.drawSliderGuides(g2,slider.getLeftXCoord(), slider.getRightXCoord()); } drawExecutions(g2); if (currentExecution != n... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; if (gridModel == null) return; gridModel.drawAxes(g2); if (slider != null) { gridModel.drawSliderGuides(g2,slider.getLeftXCoord(), slider.getRightXCoord()); } drawExecutions(g2); if (currentExecution != n... | 3,231,336 |
public static IRubyObject new_array(IRubyObject recv, IRubyObject object) { ICallable method = recv.getMetaClass().searchMethod("to_a"); if (method.getImplementationClass() == recv.getRuntime().getKernel()) { return recv.getRuntime().newArray(recv); } retur... | public static IRubyObject new_array(IRubyObject recv, IRubyObject object) { ICallable method = recv.getMetaClass().searchMethod("to_a"); if (method.getImplementationClass() == recv.getRuntime().getKernel()) { return recv.getRuntime().newArray(recv); } retur... | 3,231,337 |
public void setEndCoords(float x,float y) { if (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); setPoint(pointCount,new Point2D.Float(x,y)); setLine(); } | public void setEndCoords(float x,float y) { if (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); setPoint(pointCount,new Point2D.Float(x,y)); setLine(); } | 3,231,338 |
public void setPoint(int index,Point2D pt) { if (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # of points is "+points.size()); if (points.size() <= index) { points.add(index,pt); } else points.set(index,pt); updateBounds(); } | public void setPoint(int index,Point2D pt) { if (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # of points is "+points.size()); if (points.size() <= index) { points.add(index,pt); } else points.set(index,pt); updateBounds(); } | 3,231,339 |
public RubyBlock cloneBlock() { return new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev != null ? prev.cloneBlock() : null, ruby); } | public RubyBlock cloneBlock() { return new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev != null ? prev.cloneBlock() : null, ruby); } | 3,231,340 |
public RubyBlock getTmp() { return new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); } | public RubyBlock getTmp() { return new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); } | 3,231,341 |
public void pop() { if (prev == null) { System.err.println("[BUG] Try to pop block from empty stack."); return; } this.var = prev.var; this.body = prev.body; this.self = prev.self; this.frame = prev.frame; this.scope = prev.scope; this.klass = prev.kl... | public void pop() { if (prev == null) { System.err.println("[BUG] Try to pop block from empty stack."); return; } this.var = prev.var; this.body = prev.body; this.self = prev.self; this.frame = prev.frame; this.scope = prev.scope; this.klass = prev.kl... | 3,231,342 |
public void push(Node v, Node b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | public void push(Node v, Node b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | 3,231,343 |
Accessor (String name) { _name = name; } | Accessor (String name) { _name = name; } | 3,231,344 |
Object get (Object instance) throws PropertyException, NoSuchMethodException { throw new PropertyException("BUG in PropertyOperator.java!"); } | Object get (Object instance) throws PropertyException, NoSuchMethodException { throw new PropertyException("BUG in PropertyOperator.java!"); } | 3,231,345 |
final String getName () { return _name; } | final String getName () { return _name; } | 3,231,346 |
boolean set (Object instance, Object value) throws PropertyException, NoSuchMethodException { throw new PropertyException("BUG in PropertyOperator.java!"); } | boolean set (Object instance, Object value) throws PropertyException, NoSuchMethodException { throw new PropertyException("BUG in PropertyOperator.java!"); } | 3,231,347 |
public final String toString () { return "Accessor:" + _name; } | public final String toString () { return "Accessor:" + _name; } | 3,231,348 |
BinaryMethodAccessor (String name, Method m, Class[] params) throws PropertyException { super(name, m, params); } | BinaryMethodAccessor (String name, Method m, Class[] params) throws PropertyException { super(name, m, params); } | 3,231,349 |
final Object get (final Object instance, String prop) throws PropertyException, NoSuchMethodException { Object[] args = {prop}; return PropertyOperator.invoke(_getMethod, instance, args); } | final Object get (final Object instance, String prop) throws PropertyException, NoSuchMethodException { Object[] args = {prop}; return PropertyOperator.invoke(_getMethod, instance, args); } | 3,231,350 |
final int numArgsGet () { return 1; } | final int numArgsGet () { return 1; } | 3,231,351 |
final int numArgsSet () { return 2; } | final int numArgsSet () { return 2; } | 3,231,352 |
final boolean set (final Object instance, String prop, Object value) throws PropertyException, NoSuchMethodException { Object[] args = {prop, value}; return setImpl(instance, args); } | final boolean set (final Object instance, String prop, Object value) throws PropertyException, NoSuchMethodException { Object[] args = {prop, value}; return setImpl(instance, args); } | 3,231,353 |
DirectAccessor (final String name, final Method m, final Class[] params) { super(name); addMethod(m, params); } | DirectAccessor (final String name, final Method m, final Class[] params) { super(name); addMethod(m, params); } | 3,231,354 |
final void addMethod (final Method m, Class[] params) { _methods.addElement(m); } | final void addMethod (final Method m, Class[] params) { _methods.addElement(m); } | 3,231,355 |
final Object get (Object instance, Object[] args) throws PropertyException, NoSuchMethodException { Class[] types = new Class[args.length]; for (int i = 0; i < args.length; i++) { try { types[i] = args[i].getClass(); } cat... | final Object get (Object instance, Object[] args) throws PropertyException, NoSuchMethodException { Class[] types = new Class[args.length]; for (int i = 0; i < args.length; i++) { try { types[i] = args[i].getClass(); } cat... | 3,231,356 |
FieldAccessor (final Field f) { super(f.getName()); _field = f; } | FieldAccessor (final Field f) { super(f.getName()); _field = f; } | 3,231,357 |
final Object get (final Object instance) throws PropertyException { try { return _field.get(instance); } catch (Exception e) { throw new PropertyException("Unable to read field " + _field + " on object " + instance + " of " + ... | final Object get (final Object instance) throws PropertyException { try { return _field.get(instance); } catch (Exception e) { throw new PropertyException("Unable to read field " + _field + " on object " + instance + " of " + ... | 3,231,358 |
final boolean set (final Object instance, final Object value) throws PropertyException { try { _field.set(instance, value); } catch (Exception e) { throw new PropertyException("Unable to write field " + _field + " on object " ... | final boolean set (final Object instance, final Object value) throws PropertyException { try { _field.set(instance, value); } catch (Exception e) { throw new PropertyException("Unable to write field " + _field + " on object " ... | 3,231,359 |
LengthAccessor () { super("length"); } | LengthAccessor () { super("length"); } | 3,231,360 |
final Object get (final Object instance) throws PropertyException { try { return new Integer(java.lang.reflect.Array.getLength(instance)); } catch (Exception e) { throw new PropertyException("Unable to fetch length of object " ... | final Object get (final Object instance) throws PropertyException { try { return new Integer(java.lang.reflect.Array.getLength(instance)); } catch (Exception e) { throw new PropertyException("Unable to fetch length of object " ... | 3,231,361 |
final boolean set (final Object instance, final Object value) throws PropertyException { throw new PropertyException("Cannot set length of array"); } | final boolean set (final Object instance, final Object value) throws PropertyException { throw new PropertyException("Cannot set length of array"); } | 3,231,362 |
MethodAccessor (final String name, final Method m, final Class[] params) throws PropertyException { super(name); addMethod(m, params); } | MethodAccessor (final String name, final Method m, final Class[] params) throws PropertyException { super(name); addMethod(m, params); } | 3,231,363 |
final void addMethod (final Method m, Class[] params) throws PropertyException { final int setArgsLength = numArgsSet(); final int getArgsLength = numArgsGet(); if (params.length == getArgsLength) { _getMethod = m; } else if (params.length == setArg... | final void addMethod (final Method m, Class[] params) throws PropertyException { final int setArgsLength = numArgsSet(); final int getArgsLength = numArgsGet(); if (params.length == getArgsLength) { _getMethod = m; } else if (params.length == setArg... | 3,231,364 |
private Class getWrapperClass (Class s) { if (s == Integer.TYPE) return Integer.class; else if (s == Boolean.TYPE) return Boolean.class; else if (s == Character.TYPE) return Character.class; else if (s == Long.TYPE) return Long.class; ... | private Class getWrapperClass (Class s) { if (s == Integer.TYPE) return Integer.class; else if (s == Boolean.TYPE) return Boolean.class; else if (s == Character.TYPE) return Character.class; else if (s == Long.TYPE) return Long.class; ... | 3,231,365 |
abstract int numArgsGet (); | abstract int numArgsGet (); | 3,231,366 |
abstract int numArgsSet (); | abstract int numArgsSet (); | 3,231,367 |
final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | 3,231,368 |
final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | 3,231,369 |
final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | final boolean setImpl (final Object inst, final Object[] args) throws PropertyException, NoSuchMethodException { //which method to use? check params for first match for (int i = 0; i < setCount; i++) { Object arg = args[args.length - 1]; // XXX: null values a... | 3,231,370 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,371 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,372 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,373 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,374 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,375 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,376 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,377 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,378 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,379 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,380 |
public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | public PropertyOperator (final Class target, PropertyOperatorCache cache) throws SecurityException, PropertyException { Accessor acc; // Save the cache _cache = cache; // introspect fields first Field[] fields = target.getFields(); for (int i = 0; i < fields.l... | 3,231,381 |
private void addMethod (HashMap hm, Method m) { if (!isMethodAllowed(m)) return; String name = m.getName(); Object o = hm.get(name); if (o == null) { hm.put(name, m); return; } Vector v; if (o instanceof Method) { v =... | private void addMethod (HashMap hm, Method m) { if (!isMethodAllowed(m)) return; String name = m.getName(); Object o = hm.get(name); if (o == null) { hm.put(name, m); return; } Vector v; if (o instanceof Method) { v =... | 3,231,382 |
private void addMethod (HashMap hm, Method m) { if (!isMethodAllowed(m)) return; String name = m.getName(); Object o = hm.get(name); if (o == null) { hm.put(name, m); return; } Vector v; if (o instanceof Method) { v =... | private void addMethod (HashMap hm, Method m) { if (!isMethodAllowed(m)) return; String name = m.getName(); Object o = hm.get(name); if (o == null) { hm.put(name, m); return; } Vector v; if (o instanceof Method) { v =... | 3,231,383 |
private static final String fillInName (Object[] names, int end) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < end; x++) { if (x > 0) sb.append("."); sb.append(names[x]); } return sb.toString(); } | private static final String fillInName (Object[] names, int end) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < end; x++) { if (x > 0) sb.append("."); sb.append(names[x]); } return sb.toString(); } | 3,231,384 |
public Iterator findIterator (Object instance) throws PropertyException { if (iteratorMethod != null) { Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret; } else ... | public Iterator findIterator (Object instance) throws PropertyException { if (iteratorMethod != null) { Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret; } else ... | 3,231,385 |
private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | 3,231,386 |
private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | 3,231,387 |
private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | private void getAllMethods (HashMap meths, Class c) throws SecurityException { if (Modifier.isPublic(c.getModifiers())) { Method m[] = c.getDeclaredMethods(); for (int i = 0; i < m.length; i++) { if (Modifier.isPublic(m[i].getModifiers())) ... | 3,231,388 |
private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | 3,231,389 |
private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | 3,231,390 |
private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | private Vector getMethods (Class c) { Vector v = new Vector(); HashMap h = new HashMap(); getAllMethods(h, c); Iterator iter = h.values().iterator(); while (iter.hasNext()) { Object elem = iter.next(); if (elem instanceof Method) { ... | 3,231,391 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,392 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,393 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,394 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,395 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,396 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,397 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,398 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,399 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,400 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,401 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 3,231,402 |
static Object invoke (Method meth, Object instance, Object[] args) throws PropertyException { try { Object obj = meth.invoke(instance, args); // if the method's return type is void return the VoidMacro // instance, instead of the 'null' we used to return ... | static Object invoke (Method meth, Object instance, Object[] args) throws PropertyException { try { Object obj = meth.invoke(instance, args); // if the method's return type is void return the VoidMacro // instance, instead of the 'null' we used to return ... | 3,231,403 |
boolean isMethodAllowed (Method m) { Class c = m.getDeclaringClass(); Map restrictedClasses = _cache.getRestrictedClassMap(); if (restrictedClasses.containsKey(c)) { // this class is restricted, check if method is allowed List okMeths = (List) restrictedClasses.g... | boolean isMethodAllowed (Method m) { Class c = m.getDeclaringClass(); Map restrictedClasses = _cache.getRestrictedClassMap(); if (restrictedClasses.containsKey(c)) { // this class is restricted, check if method is allowed List okMeths = (List) restrictedClasses.g... | 3,231,404 |
boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 3,231,405 |
boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 3,231,406 |
boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 3,231,407 |
private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 3,231,408 |
private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 3,231,409 |
private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 3,231,410 |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 3,231,411 |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 3,231,412 |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | return false; return false; return false; return false; publicreturn false; booleanreturn false; setPropertyreturn false; (Contextreturn false; context,return false; return false; return false; return false; return false; return false; return false; return false; return false; return false; return false; return false; ... | 3,231,413 |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 3,231,414 |
public PropertyOperatorCache () { } | public PropertyOperatorCache () { } | 3,231,415 |
final public Iterator getIterator (Object instance) throws PropertyException { if (instance instanceof Object[]) return new ArrayIterator((Object[]) instance); else if (instance.getClass().isArray()) return new PrimitiveArrayIterator(instance); else if (insta... | final public Iterator getIterator (Object instance) throws PropertyException { if (instance instanceof Object[]) return new ArrayIterator((Object[]) instance); else if (instance.getClass().isArray()) return new PrimitiveArrayIterator(instance); else if (insta... | 3,231,416 |
final public PropertyOperator getOperator (final Class type) throws PropertyException { Object o = _cache.get(type); if (o == null) { PropertyOperator po = new PropertyOperator(type, this); _cache.put(type, po); return po; } else ... | final public PropertyOperator getOperator (final Class type) throws PropertyException { Object o = _cache.get(type); if (o == null) { PropertyOperator po = new PropertyOperator(type, this); _cache.put(type, po); return po; } else ... | 3,231,417 |
final public Object getProperty (final Context context, final Object instance, final Object[] names, int start) throws PropertyException, SecurityException { if (instance == null) ... | final public Object getProperty (final Context context, final Object instance, final Object[] names, int start) throws PropertyException, SecurityException { if (instance == null) ... | 3,231,418 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.