path
stringlengths
26
170
summary
stringlengths
6
167
parent
bool
2 classes
code
stringlengths
25
133k
start_line
int64
4
46.7k
changed
bool
2 classes
commit
stringlengths
40
40
end_line
int64
7
47k
issue
stringlengths
7
12
description
stringlengths
4
51k
nl_input
stringlengths
13
5.9k
method_name
stringlengths
1
71
project
stringclasses
6 values
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
false
public void disposeWorkingMemory(final WorkingMemory workingMemory) { this.workingMemories.remove( workingMemory ); }
411
true
769bac9d7774dc1cc4288366ce749d18881b839b
415
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
disposeWorkingMemory
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
false
/** * @see RuleBase */ public FactHandleFactory getFactHandleFactory() { return this.factHandleFactory; }
419
true
769bac9d7774dc1cc4288366ce749d18881b839b
429
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getFactHandleFactory
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
false
public FactHandleFactory newFactHandleFactory() { return this.factHandleFactory.newInstance(); }
433
true
769bac9d7774dc1cc4288366ce749d18881b839b
437
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newFactHandleFactory
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
false
private void initClassLoader(ClassLoader parentClassLoader) { if ( parentClassLoader == null ) { parentClassLoader = Thread.currentThread().getContextClassLoader(); if ( parentClassLoader == null ) { parentClassLoader = getClass().getClassLoader(); ...
147
true
769bac9d7774dc1cc4288366ce749d18881b839b
169
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
initClassLoader
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @see RuleBase */ public WorkingMemory newWorkingMemory() { return newWorkingMemory( true ); }
201
false
769bac9d7774dc1cc4288366ce749d18881b839b
211
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newWorkingMemory
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @see RuleBase */ public WorkingMemory newWorkingMemory(final boolean keepReference) { final LeapsWorkingMemory workingMemory = new LeapsWorkingMemory( this.workingMemoryCounter++, this ); // add all r...
215
false
769bac9d7774dc1cc4288366ce749d18881b839b
245
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newWorkingMemory
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Creates leaps rule wrappers and propagate rule to the working memories * * @param rule * @throws FactException * @throws InvalidPatternException */ public void addRule(final Rule rule) throws FactException, InvalidPatternExcept...
249
false
769bac9d7774dc1cc4288366ce749d18881b839b
301
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addRule
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeRule(final Rule rule) { for ( final Iterator it = this.getWorkingMemories().iterator(); it.hasNext(); ) { ((LeapsWorkingMemory) it.next()).removeRule( (List) this.leapsRules.remove( rule ) ); } }
305
false
769bac9d7774dc1cc4288366ce749d18881b839b
313
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeRule
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules. * ...
317
false
769bac9d7774dc1cc4288366ce749d18881b839b
333
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
writeExternal
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. * A custom ObjectInpu...
337
false
769bac9d7774dc1cc4288366ce749d18881b839b
373
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
readExternal
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void assertObject(final FactHandle handle, final Object object, final PropagationContext context, final ReteooWorkingMemory workingMemory) throws FactException { // do nothing as reteoo specific }
377
false
769bac9d7774dc1cc4288366ce749d18881b839b
389
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
assertObject
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void modifyObject(final FactHandle handle, final PropagationContext context, final ReteooWorkingMemory workingMemory) throws FactException { // do nothing as reteoo specific }
393
false
769bac9d7774dc1cc4288366ce749d18881b839b
403
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
modifyObject
drools
drools-core/src/main/java/org/drools/leaps/LeapsRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void retractObject(final FactHandle handle, final PropagationContext context, final ReteooWorkingMemory workingMemory) throws FactException { // do nothing as reteoo specific }
407
false
769bac9d7774dc1cc4288366ce749d18881b839b
417
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
retractObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooWorkingMemory.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void doAssertObject(final InternalFactHandle handle, final Object object, final PropagationContext propagationContext) throws FactException { this.ruleBase.assertObject( handle, object, ...
135
false
769bac9d7774dc1cc4288366ce749d18881b839b
149
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
doAssertObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooWorkingMemory.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void doRetract(final InternalFactHandle handle, final PropagationContext propagationContext) { this.ruleBase.retractObject( handle, propagationContext, this ); }
153
false
769bac9d7774dc1cc4288366ce749d18881b839b
163
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
doRetract
drools
drools-core/src/main/java/org/drools/reteoo/ReteooWorkingMemory.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @see WorkingMemory */ public void modifyObject(final FactHandle factHandle, final Object object, final Rule rule, final Activation activation) throws FactException { this.lock.lock(); t...
167
false
769bac9d7774dc1cc4288366ce749d18881b839b
309
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
modifyObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooWorkingMemory.java
Refactor any class that implements Externalizable to have empty default constructors
true
public QueryResults getQueryResults(final String query) { final FactHandle handle = assertObject( new DroolsQuery( query ) ); final QueryTerminalNode node = (QueryTerminalNode) this.queryResults.remove( query ); if ( node == null ) { retractObject( handle ); retu...
313
false
769bac9d7774dc1cc4288366ce749d18881b839b
347
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getQueryResults
drools
drools-core/src/main/java/org/drools/reteoo/ReteooWorkingMemory.java
Refactor any class that implements Externalizable to have empty default constructors
true
void setQueryResults(final String query, final QueryTerminalNode node) { if ( this.queryResults == Collections.EMPTY_MAP ) { this.queryResults = new HashMap(); } this.queryResults.put( query, node ); }
351
false
769bac9d7774dc1cc4288366ce749d18881b839b
365
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
setQueryResults
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules. * ...
273
false
769bac9d7774dc1cc4288366ce749d18881b839b
291
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
writeExternal
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. * A custom ObjectInpu...
295
false
769bac9d7774dc1cc4288366ce749d18881b839b
329
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
readExternal
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Retrieve the Rete-OO network for this <code>RuleBase</code>. * * @return The RETE-OO network. */ Rete getRete() { return this.rete; }
341
false
769bac9d7774dc1cc4288366ce749d18881b839b
355
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getRete
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Assert a fact object. * * @param handle * The handle. * @param object * The fact. * @param workingMemory * The working-memory. * * @throws FactException * If an error occurs while performing the as...
359
false
769bac9d7774dc1cc4288366ce749d18881b839b
399
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
assertObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void modifyObject(final FactHandle handle, final PropagationContext context, final ReteooWorkingMemory workingMemory) throws FactException { getRete().modifyObject( (DefaultFactHandle) handle, context, ...
403
false
769bac9d7774dc1cc4288366ce749d18881b839b
415
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
modifyObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Retract a fact object. * * @param handle * The handle. * @param workingMemory * The working-memory. * * @throws FactException * If an error occurs while performing the retraction. */ public void retractObject(...
419
false
769bac9d7774dc1cc4288366ce749d18881b839b
453
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
retractObject
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @see RuleBase */ public WorkingMemory newWorkingMemory(final boolean keepReference) { final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( this.workingMemoryCounter++, this ); super.a...
457
false
769bac9d7774dc1cc4288366ce749d18881b839b
503
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newWorkingMemory
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected void addRule(final Rule rule) throws InvalidPatternException { super.addRule( rule ); // This adds the rule. ReteBuilder has a reference to the WorkingMemories and will propagate any existing facts. this.reteooBuilder.addRule( rule ); }
507
false
769bac9d7774dc1cc4288366ce749d18881b839b
517
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addRule
drools
drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected void removeRule(final Rule rule) { this.reteooBuilder.removeRule( rule ); }
521
false
769bac9d7774dc1cc4288366ce749d18881b839b
525
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeRule
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
private void init(ClassLoader parentClassLoader) { if ( parentClassLoader == null ) { parentClassLoader = Thread.currentThread().getContextClassLoader(); if ( parentClassLoader == null ) { parentClassLoader = getClass().getClassLoader(); } ...
135
false
769bac9d7774dc1cc4288366ce749d18881b839b
157
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
init
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the write serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by * default methods. The PackageCompilationData holds a reference to the generated bytecode. The generated bytecode must be restored before any Rules. * ...
161
false
769bac9d7774dc1cc4288366ce749d18881b839b
191
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
writeExternal
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the read serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by * default methods. The PackageCompilationData holds a reference to the generated bytecode; which must be restored before any Rules. * A custom ObjectInp...
195
false
769bac9d7774dc1cc4288366ce749d18881b839b
235
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
readExternal
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public ClassLoader getClassLoader() { return this.classLoader; }
239
false
769bac9d7774dc1cc4288366ce749d18881b839b
243
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getClassLoader
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public byte[] read(final String resourceName) { final byte[] bytes = null; if ( this.store != null ) { return (byte[]) this.store.get( resourceName.replace( '.', '/' ) + ".class" ); } return bytes; ...
247
false
769bac9d7774dc1cc4288366ce749d18881b839b
263
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
read
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void write(final String resourceName, final byte[] clazzData) throws RuntimeDroolsException { if ( this.store.put( resourceName.replace( '.', '/' ) + ".class", clazzData ) != null ) { ...
267
false
769bac9d7774dc1cc4288366ce749d18881b839b
297
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
write
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void remove(final String resourceName) throws RuntimeDroolsException { this.invokerLookups.remove( resourceName ); if ( this.store.remove( resourceName.replace( '.', '/' ) + ".class" ) != null ) { // we need to make sure th...
301
false
769bac9d7774dc1cc4288366ce749d18881b839b
315
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
remove
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public String[] list() { if ( this.store == null ) { return new String[0]; } final List names = new ArrayList(); for ( final Iterator it = this.store.keySet().iterator(); it.hasNext(); ) { final String name = (String) it.next(); names.add(...
319
false
769bac9d7774dc1cc4288366ce749d18881b839b
347
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
list
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * This class drops the classLoader and reloads it. During this process it must re-wire all the invokeables. * @throws CheckedDroolsException */ public void reload() throws RuntimeDroolsException { // drops the classLoader and adds a new one this.classLoader = new Packag...
351
false
769bac9d7774dc1cc4288366ce749d18881b839b
395
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
reload
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void clear() { this.store.clear(); this.invokerLookups.clear(); this.AST = null; reload(); }
399
false
769bac9d7774dc1cc4288366ce749d18881b839b
409
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
clear
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void wire(final String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException { final Object invoker = this.invokerLookups.get( className ); wire( className, ...
413
false
769bac9d7774dc1cc4288366ce749d18881b839b
425
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
wire
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void wire(final String className, final Object invoker) throws ClassNotFoundException, InstantiationException, IllegalAccessException { final Class clazz = this.classLoader.findClass( classNam...
429
false
769bac9d7774dc1cc4288366ce749d18881b839b
457
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
wire
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public String toString() { return this.getClass().getName() + this.store.toString(); }
461
false
769bac9d7774dc1cc4288366ce749d18881b839b
465
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
toString
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void putInvoker(final String className, final Object invoker) { this.invokerLookups.put( className, invoker ); }
469
false
769bac9d7774dc1cc4288366ce749d18881b839b
477
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
putInvoker
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void putAllInvokers(final Map invokers) { this.invokerLookups.putAll( invokers ); }
481
false
769bac9d7774dc1cc4288366ce749d18881b839b
487
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
putAllInvokers
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Map getInvokers() { return this.invokerLookups; }
491
false
769bac9d7774dc1cc4288366ce749d18881b839b
495
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getInvokers
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeInvoker(final String className) { this.invokerLookups.remove( className ); }
499
false
769bac9d7774dc1cc4288366ce749d18881b839b
503
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeInvoker
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Object getAST() { return this.AST; }
507
false
769bac9d7774dc1cc4288366ce749d18881b839b
511
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getAST
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void setAST(final Object ast) { this.AST = ast; }
515
false
769bac9d7774dc1cc4288366ce749d18881b839b
519
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
setAST
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Class fastFindClass(final String name) { final Class clazz = findLoadedClass( name ); if ( clazz == null ) { final byte[] clazzBytes = read( name ); if ( clazzBytes != null ) { return defineClass( name, ...
547
false
769bac9d7774dc1cc4288366ce749d18881b839b
575
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
fastFindClass
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Javadocs recommend that this method not be overloaded. We overload this so that we can prioritise the fastFindClass * over method calls to parent.loadClass(name, false); and c = findBootstrapClass0(name); which the default implementation * would first - hence why we call it ...
579
false
769bac9d7774dc1cc4288366ce749d18881b839b
629
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
loadClass
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected Class findClass(final String name) throws ClassNotFoundException { final Class clazz = fastFindClass( name ); if ( clazz == null ) { throw new ClassNotFoundException( name ); } return clazz; }
633
false
769bac9d7774dc1cc4288366ce749d18881b839b
645
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
findClass
drools
drools-core/src/main/java/org/drools/rule/PackageCompilationData.java
Refactor any class that implements Externalizable to have empty default constructors
true
public InputStream getResourceAsStream(final String name) { final byte[] bytes = (byte[]) PackageCompilationData.this.store.get( name ); if ( bytes != null ) { return new ByteArrayInputStream( bytes ); } else { return super.getResourceAsSt...
649
false
769bac9d7774dc1cc4288366ce749d18881b839b
663
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getResourceAsStream
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules. * ...
229
false
769bac9d7774dc1cc4288366ce749d18881b839b
273
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
doWriteExternal
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. * A custom ObjectInpu...
277
false
769bac9d7774dc1cc4288366ce749d18881b839b
345
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
doReadExternal
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @return the id */ public String getId() { return this.id; }
349
false
769bac9d7774dc1cc4288366ce749d18881b839b
359
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getId
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Package[] getPackages() { return (Package[]) this.pkgs.values().toArray( new Package[this.pkgs.size()] ); }
417
false
769bac9d7774dc1cc4288366ce749d18881b839b
421
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getPackages
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Map getGlobals() { return this.globals; }
425
false
769bac9d7774dc1cc4288366ce749d18881b839b
429
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getGlobals
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Add a <code>Package</code> to the network. Iterates through the * <code>Package</code> adding Each individual <code>Rule</code> to the * network. Before update network each referenced <code>WorkingMemory</code> * is locked. * * @param pkg * The package to ...
433
false
769bac9d7774dc1cc4288366ce749d18881b839b
561
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addPackage
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
private void mergePackage(final Package pkg, final Package newPkg) throws PackageIntegrationException { final Map globals = pkg.getGlobals(); final List imports = pkg.getImports(); // First update the binary files // @todo: this probably has issue...
565
false
769bac9d7774dc1cc4288366ce749d18881b839b
627
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
mergePackage
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected void addRule(final Rule rule) throws InvalidPatternException { if ( !rule.isValid() ) { throw new IllegalArgumentException( "The rule called " + rule.getName() + " is not valid. Check for compile errors reported." ); } }
631
false
769bac9d7774dc1cc4288366ce749d18881b839b
639
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addRule
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removePackage(final String packageName) { final Package pkg = (Package) this.pkgs.get( packageName ); // Iterate each workingMemory and lock it // This is so we don't update the Rete network during propagation for ( final Iterator it = this.workingMemories.keySet().it...
643
false
769bac9d7774dc1cc4288366ce749d18881b839b
727
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removePackage
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeRule(final String packageName, final String ruleName) { final Package pkg = (Package) this.pkgs.get( packageName ); final Rule rule = pkg.getRule( ruleName ); // Iterate each workingMemory and lock it // This is so we don't update the...
731
false
769bac9d7774dc1cc4288366ce749d18881b839b
767
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeRule
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected void addWorkingMemory(final WorkingMemory workingMemory, final boolean keepReference) { if ( keepReference ) { this.workingMemories.put( workingMemory, AbstractRuleBase.PRESENT ); } }
775
false
769bac9d7774dc1cc4288366ce749d18881b839b
787
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addWorkingMemory
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public Set getWorkingMemories() { return this.workingMemories.keySet(); }
791
false
769bac9d7774dc1cc4288366ce749d18881b839b
795
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getWorkingMemories
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public RuleBaseConfiguration getConfiguration() { return this.config; }
799
false
769bac9d7774dc1cc4288366ce749d18881b839b
803
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getConfiguration
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public WorkingMemory newWorkingMemory(InputStream stream) throws IOException, ClassNotFoundException { return newWorkingMemory( stream, true ); }
807
false
769bac9d7774dc1cc4288366ce749d18881b839b
813
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newWorkingMemory
drools
drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
Refactor any class that implements Externalizable to have empty default constructors
true
public WorkingMemory newWorkingMemory(InputStream stream, boolean keepReference ) throws IOException, ClassNotFoundException { final ObjectInputStreamWithLoader streamWithLoader = new ObjectInputStreamWithLoader( stream, ...
815
false
769bac9d7774dc1cc4288366ce749d18881b839b
835
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newWorkingMemory
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules. * ...
257
false
769bac9d7774dc1cc4288366ce749d18881b839b
293
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
writeExternal
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. * The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. * A custom ObjectInpu...
297
false
769bac9d7774dc1cc4288366ce749d18881b839b
343
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
readExternal
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
protected Class resolveClass(final ObjectStreamClass desc) throws IOException, ClassNotFoundException { if ( this.classLoader == null ) { return super.resolveClass( desc ); } else { fin...
367
false
769bac9d7774dc1cc4288366ce749d18881b839b
383
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
resolveClass
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Retrieve the name of this <code>Package</code>. * * @return The name of this <code>Package</code>. */ public String getName() { return this.name; }
397
false
769bac9d7774dc1cc4288366ce749d18881b839b
411
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getName
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void addImport(final String importEntry) { this.imports.add( importEntry ); }
415
false
769bac9d7774dc1cc4288366ce749d18881b839b
419
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addImport
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeImport(final String importEntry) { this.imports.remove( importEntry ); }
423
false
769bac9d7774dc1cc4288366ce749d18881b839b
427
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeImport
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public List getImports() { return this.imports; }
431
false
769bac9d7774dc1cc4288366ce749d18881b839b
435
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getImports
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void addGlobal(final String identifier, final Class clazz) { this.globals.put( identifier, clazz ); }
439
false
769bac9d7774dc1cc4288366ce749d18881b839b
447
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addGlobal
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeGlobal(final String identifier) { this.globals.remove( identifier ); }
451
false
769bac9d7774dc1cc4288366ce749d18881b839b
455
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeGlobal
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeFunction(final String functionName) { this.packageCompilationData.remove( this.name + "." + ucFirst( functionName ) ); }
467
false
769bac9d7774dc1cc4288366ce749d18881b839b
471
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeFunction
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Add a <code>Rule</code> to this <code>Package</code>. * * @param rule * The rule to add. * * @throws DuplicateRuleNameException * If the <code>Rule</code> attempting to be added has the * same name as another previously added...
475
false
769bac9d7774dc1cc4288366ce749d18881b839b
511
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
addRule
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void removeRule(final Rule rule) { this.rules.remove( rule.getName() ); final String consequenceName = rule.getConsequence().getClass().getName(); this.packageCompilationData.remove( consequenceName ); removeClasses( rule.getLhs() ); // Now remove the rule cla...
515
false
769bac9d7774dc1cc4288366ce749d18881b839b
535
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeRule
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
private void removeClasses(final ConditionalElement ce) { if ( ce instanceof GroupElement ) { final GroupElement group = (GroupElement) ce; for ( final Iterator it = group.getChildren().iterator(); it.hasNext(); ) { final Object object = it.next(); ...
539
false
769bac9d7774dc1cc4288366ce749d18881b839b
567
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeClasses
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
private void removeClasses(final Column column) { for ( final Iterator it = column.getConstraints().iterator(); it.hasNext(); ) { final Object object = it.next(); if ( object instanceof PredicateConstraint ) { this.packageCompilationData.remove( ((PredicateConstra...
571
false
769bac9d7774dc1cc4288366ce749d18881b839b
589
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
removeClasses
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Retrieve a <code>Rule</code> by name. * * @param name * The name of the <code>Rule</code> to retrieve. * * @return The named <code>Rule</code>, or <code>null</code> if not * such <code>Rule</code> has been added to this * <code>Packa...
593
false
769bac9d7774dc1cc4288366ce749d18881b839b
617
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getRule
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Retrieve all <code>Rules</code> in this <code>Package</code>. * * @return An array of all <code>Rules</code> in this <code>Package</code>. */ public Rule[] getRules() { return (Rule[]) this.rules.values().toArray( new Rule[this.rules.size()] ); }
621
false
769bac9d7774dc1cc4288366ce749d18881b839b
635
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getRules
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void setTypeSolver(final TypeResolver typeResolver) { this.typeResolver = typeResolver; }
639
false
769bac9d7774dc1cc4288366ce749d18881b839b
643
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
setTypeSolver
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public TypeResolver getTypeResolver() { return this.typeResolver; }
647
false
769bac9d7774dc1cc4288366ce749d18881b839b
651
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getTypeResolver
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public PackageCompilationData getPackageCompilationData() { return this.packageCompilationData; }
655
false
769bac9d7774dc1cc4288366ce749d18881b839b
659
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getPackageCompilationData
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public String toString() { return "[Package name=" + this.name + "]"; }
663
false
769bac9d7774dc1cc4288366ce749d18881b839b
667
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
toString
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** Once this is called, the package will be marked as invalid */ public void setError(final String summary) { this.errorSummary = summary; this.valid = false; }
671
false
769bac9d7774dc1cc4288366ce749d18881b839b
679
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
setError
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * @return true (default) if there are no build/structural problems. */ public boolean isValid() { return this.valid; }
683
false
769bac9d7774dc1cc4288366ce749d18881b839b
693
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
isValid
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** This will throw an exception if the package is not valid */ public void checkValidity() { if ( !isValid() ) { throw new InvalidRulePackage( this.getErrorSummary() ); } }
697
false
769bac9d7774dc1cc4288366ce749d18881b839b
707
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
checkValidity
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * This will return the error summary (if any) if the package is invalid. */ public String getErrorSummary() { return this.errorSummary; }
711
false
769bac9d7774dc1cc4288366ce749d18881b839b
721
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
getErrorSummary
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public boolean equals(final Object object) { if ( this == object ) { return true; } if ( object == null || !(object instanceof Package) ) { return false; } final Package other = (Package) object; return (this.name.equals( other.na...
725
false
769bac9d7774dc1cc4288366ce749d18881b839b
749
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
equals
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public int hashCode() { return this.name.hashCode(); }
753
false
769bac9d7774dc1cc4288366ce749d18881b839b
757
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
hashCode
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
private String ucFirst(final String name) { return name.toUpperCase().charAt( 0 ) + name.substring( 1 ); }
761
false
769bac9d7774dc1cc4288366ce749d18881b839b
765
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
ucFirst
drools
drools-core/src/main/java/org/drools/rule/Package.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void clear() { this.rules.clear(); this.packageCompilationData.clear(); }
769
false
769bac9d7774dc1cc4288366ce749d18881b839b
775
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
clear
drools
drools-core/src/main/java/org/drools/common/AbstractFactHandleFactory.java
Refactor any class that implements Externalizable to have empty default constructors
true
/* (non-Javadoc) * @see org.drools.reteoo.FactHandleFactory#newFactHandle() */ public final InternalFactHandle newFactHandle(final Object object) { if ( !this.factHandlePool.isEmpty() ) { return newFactHandle( this.factHandlePool.pop(), objec...
79
false
769bac9d7774dc1cc4288366ce749d18881b839b
101
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newFactHandle
drools
drools-core/src/main/java/org/drools/common/AbstractFactHandleFactory.java
Refactor any class that implements Externalizable to have empty default constructors
true
/* (non-Javadoc) * @see org.drools.reteoo.FactHandleFactory#newFactHandle(long) */ protected final InternalFactHandle newFactHandle(final long id, final Object object) { return newFactHandle( id, object, ...
105
false
769bac9d7774dc1cc4288366ce749d18881b839b
121
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
newFactHandle
drools
drools-core/src/main/java/org/drools/common/AbstractFactHandleFactory.java
Refactor any class that implements Externalizable to have empty default constructors
true
/* (non-Javadoc) * @see org.drools.reteoo.FactHandleFactory#increaseFactHandleRecency(org.drools.FactHandle) */ public final void increaseFactHandleRecency(final InternalFactHandle factHandle) { factHandle.setRecency( this.counter++ ); }
139
false
769bac9d7774dc1cc4288366ce749d18881b839b
149
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
increaseFactHandleRecency
drools
drools-core/src/main/java/org/drools/common/AbstractFactHandleFactory.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void destroyFactHandle(final InternalFactHandle factHandle) { this.factHandlePool.push( factHandle.getId() ); factHandle.invalidate(); }
153
false
769bac9d7774dc1cc4288366ce749d18881b839b
159
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
destroyFactHandle
drools
drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void assertTuple(final ReteTuple tuple, final PropagationContext context, final ReteooWorkingMemory workingMemory) { assertTuple( tuple, context, workingMemory, true ); ...
197
false
769bac9d7774dc1cc4288366ce749d18881b839b
213
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
assertTuple
drools
drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
Refactor any class that implements Externalizable to have empty default constructors
true
/** * Assert a new <code>Tuple</code>. * * @param tuple * The <code>Tuple</code> being asserted. * @param workingMemory * The working memory seesion. * @throws AssertionException * If an error occurs while asserting. */ pu...
217
false
769bac9d7774dc1cc4288366ce749d18881b839b
419
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
assertTuple
drools
drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
Refactor any class that implements Externalizable to have empty default constructors
true
public void retractTuple(final ReteTuple tuple, final PropagationContext context, final ReteooWorkingMemory workingMemory) { final Activation activation = tuple.getActivation(); if ( activation.isActivated() ) { activation.re...
423
false
769bac9d7774dc1cc4288366ce749d18881b839b
447
JBRULES-371
<p>Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.</p>
Refactor any class that implements Externalizable to have empty default constructors Externalizable always calls t he default constructor, so make sure all impl do nothing for the default constructor. will need to refactor code to also stop using them for convenience methods.
retractTuple
drools