diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public interface TypeDescription extends ByteCodeElement , DeclaredInType , Modifi
@ override
public boolean isVisibleTo ( TypeDescription typeDescription ) {
- return isPublic ( ) || typeDescription . getPackageName ( ) . equals ( getPackageName ( ) ) ;
+ return isPublic ( )
+ || ( isPackagePrivate ( ... | Fixed wrong assumption over visibility of types |
<nb> public class Util {
priority = Log . WARN ;
else if ( ex instanceof ActivityShare . ServerException )
priority = Log . WARN ;
+ else if ( ex instanceof NoClassDefFoundError )
+ priority = Log . WARN ;
else
priority = Log . ERROR ; | Suppress NoClassDefFoundError support info |
<nb> public class Scene extends Entity {
protected void onManagedDraw ( final GL10 pGL , final Camera pCamera ) {
final Scene childScene = this . mChildScene ;
if ( childScene == null || ! this . mChildSceneModalDraw ) {
- pCamera . onApplyPositionIndependentMatrix ( pGL ) ;
- GLHelper . setModelViewIdentityM... | Fixed bug drawing backgrounds of Scenes even if they were disabled |
<nb> public class RefFile extends RefElement {
final SourceFolder [ ] sourceFolderFiles = contentEntry . getSourceFolders ( ) ;
for ( SourceFolder folder : sourceFolderFiles ) {
if ( VfsUtil . isAncestor ( folder . getFile ( ) , parentDirectory , false ) ) {
- final String qualifiedName = aPackage . getQualifie... | correctly show default package |
<nb> public interface SharedPreferenceConstants {
String KEY_MEDIA_PREVIEW_STYLE = STRING0 ;
@ preference ( type = BOOLEAN , hasDefault = true , defaultBoolean = false )
String KEY_MEDIA_PREVIEW = STRING1 ;
- @ preference ( type = BOOLEAN , hasDefault = true , defaultBoolean = false )
- String KEY_SORT_TIMELI... | removed unused preference key |
<nb> public final class MapMaker extends GenericMapMaker < Object , Object > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
MapMaker strongValues ( ) {
<nb> public final class HostAndPort {
private final String host ;
COMMENT
- private int port ;
+ priva... | Fix strongValues key value confusion reported on guava discuss |
<nb> public class JNIEncoder
{
AudioFormat outputAudioFormat = ( AudioFormat ) outputFormat ;
- setOutputFormat (
+ outputFormat = setOutputFormat (
new AudioFormat (
outputAudioFormat . getEncoding ( ) ,
outputAudioFormat . getSampleRate ( ) ,
<nb> public class JNIEncoder
outputAudioFormat . getFra... | Fix RTP timestamp problem with speex reported on the mailing with the subject Outgoing Speex packets have incorrect RTP timestamp |
<nb> public class Neo4jGraph implements Graph {
this ( directory , null ) ;
}
+ public GraphDatabaseService getGraphDatabaseService ( ) {
+ return this . neo ;
+ }
+
public Neo4jGraph ( final String directory , Map < String , String > configuration ) {
this . directory = directory ;
if ( null != con... | added a method to get the GraphDatabaseService from Neo4jGraph |
<nb> public class GhostView extends View {
mView . mGhostView = null ;
final ViewGroup parent = ( ViewGroup ) mView . getParent ( ) ;
if ( parent != null ) {
- parent . mRecreateDisplayList = true ;
- parent . updateDisplayListIfDirty ( ) ;
+ parent . invalidate ( ) ;
}
}
} | Don t call updateDisplayListIfDirty outside draw |
<nb> class Searcher {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> public class Solo {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT | Clarified javadoc for searchText String in Solo and Searcher |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IngestClientIT extends ESIntegTestCase {
try {
client ( ) . admin ( ) . cluster ( ) . putPipeline ( putPipelineRequest ) . get ( ) ;
} catch ( ExecutionExcept... | fix ingest client put error test |
<nb> public abstract class BTreeKeySerializer < KEY , KEYS > {
@ override
public Object [ ] arrayToKeys ( Object [ ] keys ) {
- if ( CC . PARANOID && keys . length % tsize != NUMBER0 )
- throw new AssertionError ( ) ;
Object [ ] ret = new Object [ keys . length * tsize ] ;
int pos = NUMBER0 ;
for ( Obje... | remove wrong assertion |
<nb> public final class ReleaseBundlingSupport {
. add ( STRING0 )
. addPath ( ObjcRuleClasses . SWIFT_STDLIB_TOOL )
. add ( STRING1 ) . add ( IosSdkCommands . swiftPlatform ( objcConfiguration ) )
- . addExecPath ( STRING2 , intermediateArtifacts . strippedSingleArchitectureBinary ( ) ) ;
+ . addExecPath ( S... | Fix Swift merge action to use combined arch binary |
<nb> public class Transformers {
if ( targetVersion < Opcodes . V1_7 ) {
next = new SwallowSuppressedExceptions ( next ) ;
}
- next = new FixInvokeStaticOnInterfaceMethod ( next ) ; SINGLE
+ next = new FixInvokeStaticOnInterfaceMethod ( next ) ;
next = chain . wrap ( next ) ;
reader . accept ( next , NU... | This fix is needed to run Retrolambda on itself cannot remove it |
<nb> public class StateTrackerDropWizardResource extends Application < HazelCastConf > i
public void shutdown ( ) {
- if ( env . getAdminContext ( ) != null )
+ if ( env != null && env . getAdminContext ( ) != null )
env . getAdminContext ( ) . shutdown ( ) ;
else
return ; | fix drop wizard resource shutdown |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public interface GwtExtension extends ServerExtension {
String getGwtId ( ) ;
}
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public abstract class GwtPage implements Page , GwtExtensio... | Deprecated Gwt API |
<nb> public final class Channels {
public enum OverflowPolicy {
THROW , DROP , BLOCK , BACKOFF , DISPLACE
}
- private static final OverflowPolicy defaultPolicy = OverflowPolicy . THROW ;
+ private static final OverflowPolicy defaultPolicy = OverflowPolicy . BLOCK ;
private static final boolean defaultSingle... | changed default channel policy THROW BLOCK |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UploadApplicationAction extends AnAction {
@ override
public void update ( AnActionEvent e ) {
final Project proje... | hide Upload AppEngine App action if there are no AppEngine facets in project |
<nb> class InstallPluginCommand extends CliTool . Command {
zipInput . closeEntry ( ) ;
}
}
+ Files . delete ( zip ) ;
return target ;
} | Delete temp zip file once it is unzipped |
<nb> public class GenerateToStringWorker {
SINGLE
autoImportPackages ( javaFile , params . get ( STRING0 ) ) ;
}
- method = ( PsiMethod ) JavaCodeStyleManager . getInstance ( clazz . getProject ( ) ) . shortenClassReferences ( method ) ;
}
+ method = ( PsiMethod ) JavaCodeStyleManager . getInstance ( clazz ... | shorten class references not only for java files |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class LdapDataAccessException extends AuthenticationServiceException {
+ public class LdapDataAccessException extends DataAccessException {
public L... | Now extends Spring s DataAccessException |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAME... | ignore empty favorites in scope choosers |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RCompletionManager implements CompletionManager
return ;
}
- if ( canAutoAccept_ ) {
+ if ( canAutoAccept_ )
+ {
... | don t show popup when auto accepting |
<nb> public class NewChatActivity extends SherlockFragmentActivity implements View . On
mConn = conn ;
if ( mFilterView != null )
- mFilterView . setConnection ( mConn ) ;
+ mFilterView . setActivity ( getActivity ( ) ) ;
} | give the filterview the activity so it can get connections |
<nb> public abstract class Intention extends BaseElementAtCaretIntentionAction {
codeStyleManager . reformat ( insertedElement ) ;
}
- protected static void addStatementBefore ( String newStatementText , PsiReturnStatement anchor ) {
- final Project project = anchor . getProject ( ) ;
- final PsiElementFact... | remove unused method |
<nb> public class AccountHeader {
}
protected void buildProfiles ( ) {
- mCurrentProfileView . setVisibility ( View . GONE ) ;
+ mCurrentProfileView . setVisibility ( View . INVISIBLE ) ;
mAccountHeaderTextSection . setVisibility ( View . GONE ) ;
mAccountSwitcherArrow . setVisibility ( View . GONE ) ;
... | fix the selection not at the bottom if no profiles |
<nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen
public static final int MEDIA_PERMISSION_REQUEST_CODE = NUMBER0 ;
public static final int LOCATION_PERMISSION_REQUEST_CODE = NUMBER1 ;
- private static final String PROP_LOCAL_PHOTOS = STRING0 ;
- private static final String... | remove unused static fields |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | using wrong map class |
<nb> public class GenericsUtils {
COMMENT
public static GenericsType [ ] alignGenericTypes ( final GenericsType [ ] redirectGenericTypes , final GenericsType [ ] parameterizedTypes , final GenericsType [ ] alignmentTarget ) {
if ( alignmentTarget == null ) return EMPTY_GENERICS_ARRAY ;
+ if ( parameterizedTypes... | Fix potential NPE if parameterizedTypes are not found |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
public class ProjectActivityPageTest {
@ classrule
- public static Orchestrator ORCHESTRATOR = Catego... | Fix leaky db connection for ProjectActivityPageTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
@ priority ( Priorities . AUTHORIZATION )
public class ShiroAuthorizationFilter implements ContainerRequestFilter {
<nb> public class ShiroAuthorizationFilter implements ContainerRequestFilter {
LOG .... | Improve authorization error log message to show HTTP method and path |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface Greeting {
boolean isConstructed ( ) ; | fixed class header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class IsTest implements Control {
}
public Object call ( Properties bindings , Evaluable [ ] args ) {
- Object o = args [ NUMBER0 ] . evaluate... | IsTest should catch errors and wrap them |
<nb> public class ListsFragment extends SherlockFragment implements
@ override
public boolean onContextItemSelected ( MenuItem item ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( ! getUserVisibleHint ( ) ) {
+ return super . onContextItemSelected ( item ) ;
+ }
+
AdapterContextMe... | Work around all list fragments receiving context menu dispatch calls |
<nb> public class WindowManagerService extends IWindowManager . Stub
& WindowManager . LayoutParams . FLAG_SHOW_WALLPAPER ) != NUMBER0 ) {
wallpaperMayChange = true ;
}
+ if ( changed && ! forceHiding
+ && ( mCurrentFocus == null )
+ && ( mFocusedApp != null ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE... | Fix loss of focus after wakeup into incall screen |
<nb> public class UpdateService extends Service {
if ( md . getFrom ( ) != null )
if ( sVersion . compareTo ( md . getFrom ( ) ) < NUMBER0 ) {
SINGLE
- if ( ! dangerous && md . isDangerous ( ) ) {
+ if ( md . isDangerous ( ) ) {
Util . log ( null , Log . WARN , STRING0 + md + STRING1 + md . getFrom ( ) + ST... | Always disable new dangerous functions |
<nb> public class AttributeExtractorImpl implements AttributeExtractor {
public Builder with ( AttributeSet attributeSet ) {
if ( attributeSet == null ) {
- throw new IllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING1 ) ;
}
weakAttrs = new WeakReference < AttributeSet > ... | Fix few typos |
<nb> public class NotificationCompat {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class NotificationCompat {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improve doc for get set HintAvoidBackgroundClipping support |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExpandedActivity extends Activity {
MainApplication . registerForBus ( this , this ) ;
+ FrameLayout rootView = ( Frame... | Remove mWebRendererContainer from ExpandedActivity when not being used |
<nb> public final class CamelJavaParserHelper {
}
}
}
+ if ( STRING0 . equals ( name ) ) {
+ List args = mi . arguments ( ) ;
+ SINGLE
+ if ( args != null && args . size ( ) >= NUMBER0 ) {
+ Object arg = args . get ( NUMBER1 ) ;
+ if ( isValidArgument ( name , arg ) ) {
+ extractEndpointUriFromArgum... | Add interceptFrom as consumer |
<nb> class Scroller {
return true ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
-
+
COMMENT
COMMENT
COMMENT | Removed duplicate Javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaStaticGroup extends XValueGroup implements NodeDescriptorProvid
final ReferenceType refType =... | use show synthetic settings for static node as well |
<nb> class Natives {
static {
try {
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
Class . forName ( STRING0 ) ;
jnaAvailable = true ;
- } catch ( ClassNotFoundException e ) {
- logger . warn ( STRING1 ) ;
+ } catch ( ClassNotFoundException e ) {
+ logger . warn ( STRING1 , e ) ;
+ } catch ( Unsatisfie... | catch UnsatisfiedLinkError on JNA load |
<nb> public class HttpMessageConvertersAutoConfigurationTests {
protected static class JacksonConfig {
@ bean
- public MappingJackson2HttpMessageConverter jacksonMessaegConverter ( ) {
+ public MappingJackson2HttpMessageConverter jacksonMessageConverter ( ) {
MappingJackson2HttpMessageConverter converter = ... | Fix typo in HttpMessageConverters auto conf Tests |
<nb> import NAMESPACE ;
public class NominatimJsonDeserializer {
- @ suppresswarnings ( STRING0 )
- private JSONDeserializer jsonDeserializer ;
+ private JSONDeserializer < List < NominatimGeocoderResult > > jsonDeserializer ;
public NominatimJsonDeserializer ( ) {
jsonDeserializer = new JSONDeseriali... | Use templated version of JSonDeserializer for NominatimGeocoder to remove warnings |
<nb> public abstract class ColoredListCellRenderer < T > extends SimpleColoredComponent
}
}
else {
- setBackground ( selected ?
- hasFocus ? UIUtil . getListSelectionBackground ( ) : UIUtil . getListUnfocusedSelectionBackground ( ) :
- UIUtil . getListBackground ( ) ) ;
+ setBackground ( selected ? list .... | Revert Fix list selection background when unfocused |
<nb> public class Color {
public static int rgba8888 ( float r , float g , float b , float a ) {
return ( ( int ) ( r * NUMBER0 ) < < NUMBER1 ) | ( ( int ) ( g * NUMBER0 ) < < NUMBER2 ) | ( ( int ) ( b * NUMBER0 ) < < NUMBER3 ) | ( int ) ( a * NUMBER0 ) ;
- }
+ }
} | added nine patches skin class xml format etc |
<nb> public class DelegatingMethod implements MockitoMethod {
}
if ( o instanceof DelegatingMethod ) {
DelegatingMethod that = ( DelegatingMethod ) o ;
-
- if ( method != null ? ! method . equals ( that . method ) : that . method != null ) {
- return false ;
- }
-
- return true ;
+ return method . e... | removing redundant null check from DelegatingMethod equals |
<nb> public abstract class RepresentationFormat implements InputFormat
}
catch ( NotFoundException e )
{
- throw new NodeNotFoundException ( ) ;
+ throw new NodeNotFoundException ( e ) ;
}
}
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
public class NodeNotFoundException extends ... | Added new constructors to allow wrapped exceptions or descriptive |
<nb> public class GitBlit implements ServletContextListener {
return null ;
}
addToCachedRepositoryList ( model ) ;
- return model ;
+ return DeepCopier . copy ( model ) ;
}
SINGLE | If we have a cache miss in repository loading return a deep copy |
<nb> public class NiftyJmeDisplay implements SceneProcessor {
public void postQueue ( RenderQueue rq ) {
SINGLE
renderManager . setCamera ( vp . getCamera ( ) , true ) ;
- renderer . setDepthRange ( NUMBER0 , NUMBER0 ) ;
SINGLE
nifty . render ( false ) ;
- renderer . setDepthRange ( NUMBER0 , NUMBER1 ) ; ... | Reverted Nehon s termporary depth fix |
<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
COMMENT
private final Dispatcher . Resolved . ForMethodExit methodExit ;
+ COMMENT
+ COMMENT
+ COMMENT
private final boolean replace ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
prote... | Added missing javadoc |
<nb> public final class InternalNode implements Node {
injector . getInstance ( plugin ) . start ( ) ;
}
+ injector . getInstance ( MappingUpdatedAction . class ) . start ( ) ;
injector . getInstance ( IndicesService . class ) . start ( ) ;
injector . getInstance ( IndexingMemoryController . class ) . start... | start mapping service earlier to be available for recovery |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> static class InvokeExpr implements Expr {
gen . ifZCmp ( GeneratorAdapter . NE , onLabel ) ;
}
- gen . mark ( callLabel ) ; SINGLE
gen . dup ( ) ; SINGLE
gen . invokeStatic ( UTIL_TYPE , Method . getMethod ( STRING0 ) ) ; SINGLE
gen . loadThis ( ) ;
gen . swap ( ) ;
gen . putField ( objx . objtyp... | don t recache matched target class in protocall call site |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SelectInChangesViewTarget implements SelectInTarget , DumbAware {
final VirtualFile file = context . getVirtualFile ( ) ;
Runnable runnable = new Runnable ( ) {
public void run ( ) {
- ChangesViewContentManager . getInstanc... | remove hardcoded literal |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT | remove unused import |
<nb> public class JspC implements Options {
errorOnUseBeanInvalidClassAttribute = b ;
}
- public int getTagPoolSize ( ) {
- return Constants . MAX_POOL_SIZE ;
- }
-
COMMENT
COMMENT
COMMENT
<nb> public class JspC implements Options {
return mappedFile ;
}
- SINGLE
- public Object getProte... | Remove unused public methods |
<nb> public abstract class Engine implements Closeable {
return t ;
}
- public static interface FailedEngineListener {
+ public interface FailedEngineListener {
void onFailedEngine ( ShardId shardId , String reason , @ nullable Throwable t ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMEN... | Remove dead code unused class |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestReadOnlyBatchIndexer extends TestCase {
@ suppresswarnings ( STRING0 )
public void testCSVFileBatchIndexer ( ) throws Exception {
+ SINGLE
+ File dataD... | TestReadOnlyBatchIndexer now deletes dataDir if already exists |
<nb> public class TestOperationSetPresence
SINGLE
SINGLE
- suite . addTest ( new TestOperationSetPresence ( STRING0 ) ) ;
+ SINGLE
return suite ;
} | Commented the failing test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassLoadersCollection {
COMMENT
COMMENT
private void export ( ClassRealm realm , String . . . packages ) {
- SINGLE
- System . out . pr... | Fix logging from ClassLoadersCollection |
<nb> public class LocalStore extends Store implements Serializable
this . mAttachmentCount = cursor . getInt ( NUMBER0 ) ;
this . setInternalDate ( new Date ( cursor . getLong ( NUMBER1 ) ) ) ;
this . setMessageId ( cursor . getString ( NUMBER2 ) ) ;
+ if ( this . getFolder ( ) == null )
+ {
+ LocalFolder f... | If we loaded a message from the local store without an associated folder load up its folder |
<nb> import NAMESPACE ;
public interface Endpoint {
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
String getUuid ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
SocketAddress getSocketAddress ( ) ;
} | copied javadocs for methods from IAtomicLong |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class DataNode < T > implements Serializable {
private static final long serialVersionUID = NUMBER0 ;
+ private static final Logger LOG = Logger . getInst... | do not throw exceptions in toString method of data node during data retrieval |
<nb> import NAMESPACE ;
COMMENT
public abstract class DebouncingOnClickListener implements View . OnClickListener {
- private static boolean enabled = true ;
+ static boolean enabled = true ;
private static final Runnable ENABLE_AGAIN = new Runnable ( ) {
@ override public void run ( ) {
<nb> import N... | Remove creation of synthetic accessor methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShaderProgram implements Disposable {
}
}
+ public ShaderProgram ( FileHandle vertexShader , FileHandle fragmentShader ) {
+ this ( vert... | added new constuctor for ShaderProgram taking FileHandles |
<nb> public final class H2O {
public final Key _key ;
public final int _type ;
public final boolean _rawData ;
- public final int _sz ;
+ public final long _sz ;
public final byte _backEnd ;
public KeyInfo ( Key k , Value v ) {
<nb> public final class H2O {
_key = k ;
_type = v . type ( ) ;
_raw... | Fixed size in KeySnapshot for frames take the Frame byteSize instead of the useless size if the frame header itself |
<nb> public class Device {
public void setSignalDbm ( int signalDbm ) {
mCell . setDBM ( signalDbm ) ;
}
+ public int getSignalDBm ( ) { return mCell . getDBM ( ) ; }
COMMENT
COMMENT | added getter function for DBM for future use |
<nb> public static class NewExpr implements Expr {
}
}
if ( ctors . isEmpty ( ) )
- throw new IllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING1 + c ) ;
int ctoridx = NUMBER0 ;
if ( ctors . size ( ) > NUMBER1 ) | added class name to No matching ctor message |
<nb> public abstract class ExternalResourceResolver implements ModuleVersionPublisher
if ( metaDataResource == null ) {
return null ;
}
- MutableModuleVersionMetaData moduleVersionMetaData = getArtifactMetadata ( dependency , artifactIdentifier , metaDataResource ) ;
+ MutableModuleVersionMetaData moduleVersi... | Removed unused parameter |
<nb> public class BuildManager implements Disposable {
final List < String > launcherCp = new ArrayList < String > ( ) ;
launcherCp . add ( ClasspathBootstrap . getResourcePath ( launcherClass ) ) ;
+ launcherCp . addAll ( BuildProcessClasspathManager . getLauncherClasspath ( project ) ) ;
launcherCp . add ( ... | add additional classpath entries before tools jar to allow plugins e g error prone compiler override classes from tools jar |
<nb> public class XmppConnection extends ImConnection implements CallbackHandler {
IQ result = ( IQ ) mPingCollector . pollResult ( ) ;
mPingCollector . cancel ( ) ;
mPingCollector = null ;
- if ( result == null || result . getError ( ) != null ) {
+ if ( result == null ) {
Log . e ( TAG , STRING0 ) ;
ret... | Accept error IQ packet as ping reply |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
SINGLE
public final class MXBeanUtil {
<nb> public final class MXBeanUtil {
private MXBeanUtil ( ) {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static vo... | JCache java doc update MXBeanUtil |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class PeriodicSync implements Parcelable {
if ( ! b2 . containsKey ( key ) ) {
return false ;
}
- if ( ! b1 . get ( key ) . equals ( b2 . get ( key ) ) ) {
+ SINGLE
+ SI... | Sync extras bundle comparison can throw NPE |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class OAuth2ExpressionParser implements ExpressionParser {
+ public class OAuth2ExpressionParser implements ExpressionParser {
+
private final ExpressionParser delegate ;
public OAuth2ExpressionParser ( ExpressionParser delegate ) { | Make OAuth2ExpressionParser public so it can be instantiated |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ApiMethodHelper < T extends Enum < T > & ApiMethod > {
try {
return method . getMethod ( ) . invoke ( proxy , values ) ;
} catch ( Throwable e ) {
+ i... | Fixed ApiMethodHelper to throw RuntimeCamelException with API exception on InvocationTargetException |
<nb> public class DirResourceSet extends AbstractFileResourceSet {
return new EmptyResource ( root , path , f ) ;
}
if ( f . isDirectory ( ) && path . charAt ( path . length ( ) - NUMBER0 ) != STRING0 ) {
- path = path += STRING0 ;
+ path = path + STRING0 ;
}
return new FileResource ( root , path , f , is... | Remove useless double assignment |
<nb> public class ORecordSerializerBinary implements ORecordSerializer {
serializerByVersion [ iSource [ NUMBER0 ] ] . deserializePartial ( ( ODocument ) iRecord , container , iFields ) ;
else
serializerByVersion [ iSource [ NUMBER0 ] ] . deserialize ( ( ODocument ) iRecord , container ) ;
- } catch ( IndexOutO... | improved logging in case of error during binary serialization |
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass {
return createIndex ( iName , iType . name ( ) , iProgressListener , fields ) ;
}
- public OIndex < ? > createIndex ( final String iName , final String iType , final OProgressListener iProgressListener ,
- final String . . . field... | fixed bug on adding index |
<nb> public final class Message extends Packet {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Message ( String to , String body ) {
+ this ( to ) ;
+ setBody ( body ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add Message String String |
<nb> class BlockingReadingMode extends SocketReadingMode {
else {
SINGLE
socketReader . connection . close ( ) ;
- Log . error ( LocaleUtils . getLocalizedString ( STRING0 )
+ Log . debug ( LocaleUtils . getLocalizedString ( STRING0 )
+ STRING1 + socket . toString ( ) ) ;
}
socketReader . shutdown ( ) ; | Moved abrupt connection closing messages to debug |
<nb> abstract public class ZLResource {
ourLanguages . add ( new Language ( code , resource . getResource ( code ) . getValue ( ) ) ) ;
}
}
- ourLanguages . add ( new Language ( Language . SYSTEM_CODE ) ) ;
Collections . sort ( ourLanguages ) ;
}
- return Collections . unmodifiableList ( ourLanguages ) ; ... | do not store localized string |
<nb> public class OneToOneCallPeerPanel
SINGLE
final Container contentPane = frame . getContentPane ( ) ;
- contentPane . setLayout ( new FullScreenLayout ( true ) ) ;
+ contentPane . setLayout ( new FullScreenLayout ( false ) ) ;
if ( buttonBar != null )
contentPane . add ( buttonBar , FullScreenLayout .... | Revert a mistakenly committed modification of the FullScreenLayout init |
<nb> public class DeepLearningTest extends TestUtil {
Vec resp = frTrain . lastVec ( ) . toEnum ( ) ;
frTrain . remove ( frTrain . vecs ( ) . length - NUMBER0 ) . remove ( ) ;
frTrain . add ( STRING0 , resp ) ;
+ DKV . put ( frTrain ) ;
dl . _train = frTrain . _key ;
dl . _response_column = ( ( Frame ) DKV ... | Fix remote bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class GridFSTest extends DatabaseTestCase {
}
byte [ ] randomBytes = new byte [ fileSize ] ;
- Random rnd = new Random ( ) ;
for... | Removing unused variable in test |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
if ( mText . length ( ) == NUMBER0 ) {
invalidate ( ) ;
}
+
+ SINGLE
+ if ( mText . length ( ) == NUMBER0 && mHint != null ) mTextDisplayListIsValid = false ;
}
COMMENT | Display list invalidated on hint text change |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JobSubmitTest {
JobGraph jg = new JobGraph ( STRING0 , jobVertex ) ;
jg . setSnapshotSettings ( new JobSnapshottingSettin... | hotfix Fix JobSubmitTest |
<nb> public abstract class LogEntry
public String toString ( )
{
- return STRING0 + getIdentifier ( ) + STRING1 + getTxId ( ) + STRING2 ;
+ return STRING0 + getIdentifier ( ) + STRING1 + getTxId ( ) + STRING3 + getMasterId ( ) + STRING2 ;
}
}
<nb> public abstract class LogEntry
public String toStr... | Fixed bug that set wrong machine id on applyTxWithoutCommit |
<nb> public final class Realm implements Closeable {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Realm implements Closeable {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Realm impl... | Clarified behaviour of Realm copy orUpdate in method description |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
st . decorView . setWindowBackground ( getContext ( ) . getRes... | Appease the simians |
<nb>
package NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface ClusterDeployer extends ChannelListener {
COMMENT | Move class Javadoc to the correct place |
<nb> public class TestWalkingChar extends SimpleApplication implements ActionListener
model = ( Node ) assetManager . loadModel ( STRING0 ) ;
SINGLE
model . addControl ( character ) ;
- character . setPhysicsLocation ( new Vector3f ( - NUMBER0 , NUMBER1 , - NUMBER2 ) ) ;
+ character . setPhysicsLocation ( new... | Relocated the character in TestWalkingChar so that it doesn t fall under the ground |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
SINGLE
<nb> public class NFSFileVec extends FileVec {
return k ;
}
- public static Key make ( FileStatus f , Futures fs ) {
- long size = f . getLen ( ) ;
- Key... | Remove unused Key make for Hadoop FileStatus |
<nb> public class JSONDump {
if ( func . getVararg ( ) != null ) {
if ( ! first ) args . append ( STRING0 ) ;
+ first = false ;
args . append ( STRING1 + func . getVararg ( ) . toDisplay ( ) ) ;
}
if ( func . getKwarg ( ) != null ) {
if ( ! first ) args . append ( STRING0 ) ;
+ first = false ;
arg... | may miss commas |
<nb> public class Input {
}
private static final int getSource ( int inputSource , int defaultSource ) {
- return inputSource == - NUMBER0 ? defaultSource : inputSource ;
+ return inputSource == InputDevice . SOURCE_UNKNOWN ? defaultSource : inputSource ;
}
private void showUsage ( ) { | Fix check for default source in input command |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AvgAggregationTest
}
@ test ( timeout = NUMBER0 )
- @ repeat ( NUMBER1 )
public void testBigDe... | remove forgoten repeat from test |
<nb> public class MediaUtils {
mediaFile . setThumbnailURL ( cursor . getString ( cursor . getColumnIndex ( STRING0 ) ) ) ;
mediaFile . setDateCreatedGMT ( cursor . getLong ( cursor . getColumnIndex ( STRING1 ) ) ) ;
mediaFile . setVideoPressShortCode ( cursor . getString ( cursor . getColumnIndex ( STRING2 ) ) )... | Set FileURL when loading the Media from DB |
<nb> abstract class CommunicationProtocol
{
dest . writeBytes ( bytes ) ;
}
+ channel . close ( ) ;
}
} | Now closes ReadableByteChannel after it has been read |
<nb> public class GPUImage {
@ override
protected void onPostExecute ( Bitmap bitmap ) {
super . onPostExecute ( bitmap ) ;
+ mGPUImage . deleteImage ( ) ;
mGPUImage . setImage ( bitmap ) ;
} | Delete old image before setting a new one |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.