diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XSiteSimpleTestCase extends ExtendedClusterAbstractTestCase { COMMENT COMMENT @ test + @ ignore ( STRING0 ) public void testPutRelayedTo...
Ignore intermittently failing XSiteSimpleTestCase testPutRelayedToBackups test
<nb> public class HttpContentCompressorTest { STRING0 , STRING1 , STRING2 , STRING1 , STRING3 , STRING4 , - STRING5 , STRING1 , + STRING6 , STRING1 , } ; for ( int i = NUMBER0 ; i < tests . length ; i += NUMBER1 ) { String acceptEncoding = tests [ i ] ;
Fix typo in test samples
<nb> public final class CcCommon { unsupportedFeaturesBuilder . add ( CppRuleClasses . PARSE_HEADERS ) ; unsupportedFeaturesBuilder . add ( CppRuleClasses . PREPROCESS_HEADERS ) ; } + if ( toolchain . getCppCompilationContext ( ) . getCppModuleMap ( ) == null ) { + unsupportedFeaturesBuilder . add ( CppRuleCl...
Do not use module maps if the crosstool doesn t support them when using the
<nb> public class GrailsAnnotationConfiguration extends AnnotationConfiguration impl if ( configLocked ) { return ; } - if ( LOG . isInfoEnabled ( ) ) { - LOG . info ( STRING0 + this . domainClasses . size ( ) + STRING1 ) ; + if ( LOG . isDebugEnabled ( ) ) { + LOG . debug ( STRING0 + this . domainClasses...
reduced log level of some log statements
<nb> public final class URLConnectionTest { COMMENT COMMENT @ test public void sameConnectionRedirectAndReuse ( ) throws Exception { - SINGLE urlFactory . setClient ( urlFactory . client ( ) . newBuilder ( ) - . dns ( new DoubleInetAddressDns ( ) ) + . dns ( new SingleInetAddressDns ( ) ) . build ( ) ) ...
Fix a test to not require a fallback IP address
<nb> public class GenericTypeOperationHandler extends BatchModeCommandHandler { if ( argName . equals ( GenericTypeOperationHandler . this . name . getFullName ( ) ) ) { continue ; } - throw new CommandFormatException ( STRING0 + argName + STRING1 + operation + STRING2 ) ; + throw new CommandFormatException (...
fixed the testsuite
<nb> public final class CasLoggerFactory implements ILoggerFactory { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed spelling issue
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface ItemFactory { COMMENT COMMENT ItemMeta asMetaFor ( final ItemMeta meta , final Material material ) throws IllegalArgumentException ; + + COMMENT + COMMENT + COMMENT ...
Add method to get defult leather color
<nb> public class Compiler extends AbstractCompiler { COMMENT COMMENT public JSError [ ] getErrors ( ) { + if ( errorManager == null ) { + return new JSError [ ] { } ; + } return errorManager . getErrors ( ) ; } <nb> public class Compiler extends AbstractCompiler { COMMENT COMMENT public JSErr...
Fix an NPE if getErrors is called before initOptions
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
add hibernate support
<nb> public class EditorComboBoxEditor implements ComboBoxEditor { @ nonnls protected static final String NAME = STRING0 ; public EditorComboBoxEditor ( Project project , FileType fileType ) { - myTextField = new EditorTextField ( ( Document ) null , project , fileType ) ; + myTextField = new EditorTextField ...
Editor in combobox should not add border
<nb> public class JsonSerializer implements ISerializer { shellMsg . setMetricParams ( paramsObj ) ; if ( command . equals ( STRING0 ) ) { - long logLevel = ( Long ) msg . get ( STRING1 ) ; - shellMsg . setLogLevel ( ( int ) logLevel ) ; + Object logLevelObj = msg . get ( STRING1 ) ; + if ( logLevelObj !=...
fix the problem of log level implementation to compatible with old log protocol with no loglevel
<nb> public class PGL { backTex = temp ; } } - flush ( ) ; + SINGLE + finish ( ) ; } <nb> public class PGL extends processing . opengl . PGL { frontTex = backTex ; backTex = temp ; } - flush ( ) ; + SINGLE + finish ( ) ; }
Using glFinish instead of glFlush at PGL endDraw
<nb> public class SearchPage extends FluentPage { private String interval ; private Integer pageNumber ; private String streamId ; + private String sortField ; + private String sortOrder ; @ override public String getUrl ( ) { - return routes . SearchController . index ( queryString , rangeType , rela...
fix failing test compilation
<nb> public class Mina2Consumer extends DefaultConsumer { appendIoFiltersToChain ( filters , acceptor . getFilterChain ( ) ) ; if ( configuration . getSslContextParameters ( ) != null ) { SslFilter filter = new SslFilter ( configuration . getSslContextParameters ( ) . createSSLContext ( ) , configuration . isAuto...
Consumer should NOT use ClientMode for TLS
<nb> public class ZWaveAlarmSensorCommandClass extends ZWaveCommandClass COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT @ xstreamalias ( STRING0 ) <nb> public class ZWaveAlarmSensorCommandClass extends ZWaveCommandClass CARBON_MONOXIDE ( NUMBER0 , STRING1 ) , CARBON_DIOXIDE ( NUMBER1 , STRING2 ) ...
Add more alarm sensor types
<nb> import NAMESPACE ; COMMENT public final class ProxyFactory { - public static Connection getProxyConnection ( HikariPool pool , Connection connection , int defaultIsolationLevels ) + public static Connection getProxyConnection ( HikariPool pool , Connection connection , int defaultIsolationLevel , boolean...
Pass default auto commit state into constructor
<nb> public class FrameBuffer implements Disposable { Gdx . graphics . getGL20 ( ) . glViewport ( NUMBER0 , NUMBER0 , Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ; Gdx . graphics . getGL20 ( ) . glBindFramebuffer ( GL20 . GL_FRAMEBUFFER , defaultFramebufferHandle ) ; } + + COMMENT + COM...
Added FBO end x y width height method
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class TypeRegistry checkNotNull ( types , STRING0 ) ; SINGLE + addTyp...
Add Null type to type registry
<nb> public final class MediaRouter { } if ( mGroupMemberControllers != null ) { for ( RouteController controller : mGroupMemberControllers . values ( ) ) { - controller . onUnselect ( ) ; + controller . onUnselect ( unselectReason ) ; controller . onRelease ( ) ; } mGroupMemberControllers = null ;
Pass an unselect reason to members of a route group
<nb> public class MucOptions { this . error = ERROR_NO_ERROR ; self = user ; if ( mNickChangingInProgress ) { - onRenameListener . onSuccess ( ) ; + if ( onRenameListener != null ) { + onRenameListener . onSuccess ( ) ; + } mNickChangingInProgress = false ; } else if ( this . onJoinListener != null ) ...
fixed NPE when executing rename callback in muc
<nb> public final class ParseSetup extends Iced { else if ( sepA == GUESS_SEP ) return sepB ; else if ( sepB == GUESS_SEP ) return sepA ; SINGLE - throw new H2OParseSetupException ( STRING0 - + ( char ) sepA + STRING1 + ( char ) sepB + STRING2 ) ; + throw new H2OParseSetupException ( STRING3 + + ( char ) ...
Clarifies an error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FormattedEmailAlertSender extends StaticEmailAlertSender implements model . put ( STRING0 , checkResult ) ; model . put ( STRING1 , buildStrea...
Fixing NPE if backlog is configured to be zero
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public class GraphIndex { Collection < TripPattern > ps0 = patternsForStop . get ( s0 ) ; for ( StopAtDistance sd : findTransitStops ( s0 . getLon ( ) , s0 . getLat ( ) , TRANSFER_RADIUS ) ) { Stop s1 = sd . stop ; - if ( s0 == s1 ) - continue ; Collection < TripPattern > ps1 = patternsForStop . get ( ...
allow transfers to different patterns on the same stop
<nb> public class EpisodesAdapter extends CursorAdapter { mLayoutInflater = ( LayoutInflater ) context . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ; mOnClickListener = listener ; + mOnFlagListener = flagListener ; } @ override
Fix crash if flagging episodes
<nb> public class TimeoutTest { if ( fStall ) for ( ; ; ) ; try { - Thread . sleep ( NUMBER0 ) ; + Thread . sleep ( NUMBER1 ) ; } catch ( InterruptedException e ) { } }
fixed logic of self test
<nb> public class Solo { public ArrayList < View > getCurrentViews ( ) { return viewFetcher . getViews ( null , true ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + public < T extends View > ArrayList < T > getCurrentViews ( Class < T > classToFilterBy ) { +...
Exposed getCurrentViews Class T classToFilterBy View parent
<nb> java . lang . Integer [ ] [ ] [ ] a = new java . lang . Integer [ NUMBER0 ] [ NUMBER1 ] [ NUMBER2 ] ; - java . lang . String b = new java . lang . String ( STRING0 ) ; + java . lang . String b = new java . lang . String ( STRING1 ) ; ABCF c = new ABCF ( ) ;
fix test data
<nb> public class CardLayoutDevices implements ActionButtonListener { COMMENT public void updateUi ( ) { if ( devices . size ( ) > NUMBER0 ) { + showCard ( CARD_DEVICES ) ; updateDevicesTable ( ) ; } else { showCard ( CARD_NO_DEVICES ) ;
add card switch in updateUi
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class Enclosed extends Suite { COMMENT
Remove JavaDoc reference to test class
<nb> public class CreateModuleLibraryChooser implements ClasspathElementChooser < Libra } final List < Library > addedLibraries = new ArrayList < Library > ( ) ; - Map < VirtualFile , List < OrderRoot > > byFile = roots . stream ( ) . collect ( Collectors . groupingBy ( OrderRoot : : getFile ) ) ; + Map < Vir...
use LinkedHashMap to fix blinking tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class ProcessTerminatedListener extends ProcessAdapter { if ( SystemInfo . isWindows && exitCode >= NUMBER0 && exitCode < NUMBER1 ) { StringBuilder result = new StringBuilder ( ...
specify Locale ENGLISH it s a locale insensitive string
<nb> public final class Interval COMMENT COMMENT public boolean abuts ( ReadableInterval interval ) { - interval = DateTimeUtils . getReadableInterval ( interval ) ; - return ( interval . getEndMillis ( ) == getStartMillis ( ) || - getEndMillis ( ) == interval . getStartMillis ( ) ) ; + if ( interval == n...
Optimise implementation of abuts
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public enum CommentStatus implements FilterCriteria { private final int mLabelResId ; - CommentStatus ( int labelResId ) { + CommentStatus ( @ stringres int labelResId ) { mLabelResId = labelResId ; ...
added saftey annotation
<nb> public abstract class AbstractClientBase implements SalesforceSession . Salesforce if ( responseStatus < HttpStatus . OK_200 || responseStatus >= HttpStatus . MULTIPLE_CHOICES_300 ) { final String msg = String . format ( STRING0 , responseStatus , reason , request . getMethod ( ) , request . getRequestURI ( ...
Fixed the broken build on the CI Server
<nb> public class TerasologyEngine implements GameEngine { @ override public void dispose ( ) { try { - if ( ! running ) { - disposed = true ; - initialised = false ; - Iterator < EngineSubsystem > iter = subsystems . descendingIterator ( ) ; - while ( iter . hasNext ( ) ) { - EngineSubsystem subsyste...
Properly close terasology and free the mouse for the crash reporter when a crash occurs
<nb> public class WalletTest { assertEquals ( txn [ NUMBER0 ] . getHash ( ) , tx1 . getHash ( ) ) ; assertEquals ( BigInteger . ZERO , bigints [ NUMBER0 ] ) ; assertEquals ( oneCoin , bigints [ NUMBER1 ] ) ; + assertEquals ( TransactionConfidence . ConfidenceType . BUILDING , tx1 . getConfidence ( ) . getConfid...
Add an explicit test in WalletTest blockChainCatchup for confidence levels
<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements SINGLE final EventExecutor executor ; - private MessageBuf < Object > inMsgBuf ; - private ByteBuf inByteBuf ; + private final MessageBuf < Object > inMsgBuf ; + private final ByteBuf inByteBuf ; private MessageBuf < Ob...
Make inByte MsgBuf final
<nb> public abstract class BaseSourceProcessor implements SourceProcessor { return _compatClassNamesMap ; } - _compatClassNamesMap = new HashMap < String , String > ( ) ; + Map < String , String > compatClassNamesMap = new HashMap < String , String > ( ) ; String [ ] includes = new String [ ] { STRING0 ...
SourceFormatter prevent ConcurrentModificationException
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix CacheManager example in Javadoc
<nb> final class JWebCoreJavaBridge extends Handler { } private String getSignedPublicKey ( int index , String challenge , String url ) { - return Keystore . getInstance ( ) . generateKeyPair ( index , challenge , url ) ; + SINGLE + return Keystore . getInstance ( ) . generateKeyPair ( index , challenge , n...
Set organizations to be null for generateKeyPair to use the default
<nb> 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 ; COMMENT <nb> import NAMESPACE ; ...
Ensure JpaUserDetailsTests closes embedded DB
<nb> import NAMESPACE ; COMMENT COMMENT public class EntityEditor extends MultiPageDatabaseEditor - implements IPropertyChangeReflector , IProgressControlProvider , ISaveablePart2 , IFolderContainer , INavigatorModelView + implements IPropertyChangeReflector , IProgressControlProvider , ISaveablePart2 , IFold...
EntityEditor is not a navigator view
<nb> public class LocalIndexesActivity extends ExpandableListActivity { protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; - requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; + SINGLE setContentView ( R . layout . local_index ) ; LoadLocalIndexTask task ...
implement Offline Data Manager title
<nb> public class PGraphicsPDF extends PGraphicsJava2D { } + SINGLE + SINGLE + SINGLE public void endDraw ( ) { SINGLE SINGLE popMatrix ( ) ; - - SINGLE - SINGLE - SINGLE }
move the note
<nb> public class GoCompletionContributor extends CompletionContributor { if ( ! GoUtil . allowed ( file ) ) continue ; String packageName = file . getPackageName ( ) ; if ( packageName != null && StringUtil . endsWith ( packageName , STRING0 ) ) continue ; + if ( StringUtil . equals ( packageName , STRING1 ) )...
don t complete functions from the main package
<nb> public class Client extends ConnectionWithStatus implements IStatefulObject { } private boolean reconnectingAllowed ( ) { - return ! closing && connectionAttempts . get ( ) <= ( maxReconnectionAttempts + NUMBER0 ) ; + return ! closing ; } private boolean connectionEstablished ( Channel channel ) {
Netty should not limit attempts to reconnect
<nb> public class CvsCheckinEnvironment implements CheckinEnvironment { dialog . getPreparedComment ( CvsVcs2 . getInstance ( myProject ) . getCheckinEnvironment ( ) ) ) ; final CvsOperationExecutor executor = new CvsOperationExecutor ( project ) ; + executor . setShowErrors ( false ) ; executor . performActi...
Do not show cvs errors while commit
<nb> public class PythonRunConfiguration extends AbstractPythonRunConfiguration } public String suggestedName ( ) { - String name = new File ( getScriptName ( ) ) . getName ( ) ; + final String scriptName = getScriptName ( ) ; + if ( scriptName == null ) return null ; + String name = new File ( scriptName...
fixed NPE create run configuration and then set script name
<nb> public abstract class AbstractProcessingFilter implements Filter , throws IOException { } protected void onUnsuccessfulAuthentication ( HttpServletRequest request , - HttpServletResponse response ) throws IOException { } + HttpServletResponse response , AuthenticationException failed ) + throws IOExcep...
Add AuthenticationException to onUnsuccessfulAuthentication method signature
<nb> public class LinearLayout extends ViewGroup { if ( child != null && child . getVisibility ( ) != GONE ) { if ( hasDividerBeforeChildAt ( i ) ) { final LayoutParams lp = ( LayoutParams ) child . getLayoutParams ( ) ; - final int top = child . getTop ( ) - lp . topMargin ; + final int top = child . getTop ...
Fix dividers for LinearLayout TabWidget
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class BoundedTaskExecutor extends AbstractExecutorService { private void wrapAndExecute ( @ notnull final Runnable task , final long status ) { try { + final AtomicRe...
don t leak first task and provide toString
<nb> public class PhotosBaseAdapter extends BaseAdapter { PhotoItemLayout layout = ( PhotoItemLayout ) view ; layout . getImageView ( ) . requestThumbnail ( getItem ( position ) , true ) ; - layout . setChecked ( true ) ; return view ; }
Don t check items on selected GridView
<nb> public class MainActivity extends ActionBarActivity implements ActionBar . OnNavig list . setAdapter ( listAdapter ) ; final ActionBar ab = ( ( ActionBarActivity ) getActivity ( ) ) . getSupportActionBar ( ) ; - ab . hide ( ) ; - FloatingActionButton fab = ( FloatingActionButton ) root . findViewById (...
Don t hide an ActionBar
<nb> public class BlockingReadHandler < E > extends ChannelInboundMessageHandlerAdapter < return null ; } + if ( e instanceof IOException ) { + throw ( IOException ) e ; + } if ( e instanceof Throwable ) { throw ( IOException ) new IOException ( ) . initCause ( ( Throwable ) e ) ; }
Do not wrap IOException with IOException
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class TestJdbcWithMiniHS2 { private static MiniHS2 miniHS2 = null ; private static String dataFileDir ;
TestJdbcWithMiniHS2 is hanging temp patch to disable the test class
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JsFacade implements Exportable { } } - public native void handleLinkClick ( Event event ) COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMEN...
Fixing url handling
<nb> class SipSessionGroup implements SipListener { } return true ; } else { - onError ( SipErrorCode . INVALID_CREDENTIALS , - STRING0 ) ; + if ( crossDomainAuthenticationRequired ( response ) ) { + onError ( SipErrorCode . CROSS_DOMAIN_AUTHENTICATION , + getRealmFromResponse ( response ) ) ; + } els...
Remove SIP realm domain check
<nb> 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 extraneous imports
<nb> class DraggableView extends RelativeLayout { boolean isHeaderViewUnder = viewDragHelper . isViewUnder ( dragView , ( int ) x , ( int ) y ) ; boolean isHeaderViewHit = isViewHit ( dragView , ( int ) x , ( int ) y ) ; boolean isDescViewHit = isViewHit ( secondView , ( int ) x , ( int ) y ) ; - COMMENT - CO...
Remove unnecessary performClick call
<nb> public class SopremoExecutionThread implements Runnable { } catch ( Exception e ) { LOG . error ( STRING0 + this . jobInfo . getJobId ( ) , e ) ; this . jobInfo . setStatusAndDetail ( ExecutionState . ERROR , - STRING1 + STRING2 + StringUtils . stringifyException ( e ) ) ; return - NUMBER0 ; }
Fixed query error message
<nb> public class DefaultProcessor extends AbstractProcessor implements Processor { edge = factory . newEdge ( id , source , target , edgeType , draftEdge . getWeight ( ) , true ) ; break ; case MIXED : - boolean directed = draftEdge . getDirection ( ) . equals ( EdgeDirection . UNDIRECTED ) ? false : true ; ...
Fix issue in default processor with mixed graphs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UnwrappingBeanSerializer } } + @ override + public void serializeWithType ( Object bean , JsonGenerator jgen , SerializerProvider provid...
skip writing type info for unwrapped properties
<nb> public class SkeletonVersionUpdater implements ProjectComponent { final List < Sdk > sdkList = PythonSdkType . getAllSdks ( ) ; for ( Sdk sdk : sdkList ) { final String path = PythonSdkType . findSkeletonsPath ( sdk ) ; - PythonSdkType . generateBuiltinStubs ( sdk . getHomePath ( ) , path ) ; - PythonSdk...
don t throw exception on invalid Python SDK
<nb> public class TypeEvalContext { } public boolean maySwitchToAST ( @ notnull StubBasedPsiElement element ) { - return myAllowStubToAST || ( element . getStub ( ) == null && ( myOrigin == null || myOrigin == element . getContainingFile ( ) ) ) ; + return myAllowStubToAST || myOrigin == element . getContaini...
Allow stub AST in TypeEvalContext only if explicitly allowed or in the origin file
<nb> public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple } COMMENT + COMMENT + COMMENT COMMENT COMMENT public void setFilterDirectory ( String expression ) { <nb> public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple } COMMENT + COM...
Added javadoc for setter in endpoint
<nb> import NAMESPACE ; public class PySmartEnterProcessor extends SmartEnterProcessor { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; private static final List < PyFixer > ourFixers = ImmutableList . < PyFixer > builder ( ) - . add ( new PyParenthesizedFixer ( ) ) + . add ( new PyStrin...
Return accidentally removed PyStringLiteralFixer
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractVcs { return null ; } - public void doActivateActions ( Module module ) { - SINGLE - } - public void activate ( ...
delete obsolete method
<nb> public class BasicsTest extends AbstractJDOTest { @ test public void list_distinct_two_sources ( ) { + SINGLE assertEquals ( - query ( ) . from ( product , product2 ) . select ( product , product2 ) . fetch ( ) , - query ( ) . from ( product , product2 ) . distinct ( ) . select ( product , product2 )...
Improve JDO tests
<nb> public final class ClusterImpl implements ConnectionListener , Cluster { memberImpl . didWrite ( ) ; } if ( packet . lockAddress != null ) { - if ( node . getLocalMember ( ) . equals ( packet . lockAddress ) ) { + if ( thisAddress . equals ( packet . lockAddress ) ) { packet . lockAddress = null ; } ...
Fixed ClusterImpl writePacket
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class KillpayServerModule extends KillbillServerModule { install ( new DefaultSubscriptionModule ( configSource ) ) ; install ( n...
add missing Guice module
<nb> class JarLoader extends Loader { try { long start = System . currentTimeMillis ( ) ; myMemoryLoader = JarMemoryLoader . load ( file , getBaseURL ( ) ) ; - if ( myMemoryLoader != null ) { - LOG . info ( STRING0 + file + STRING1 + ( System . currentTimeMillis ( ) - start ) + STRING2 ) ; - } } finally...
preloading classes from jar
<nb> public interface StickyRecyclerHeadersAdapter < VH extends RecyclerView . ViewHolder COMMENT COMMENT int getItemCount ( ) ; + + boolean isPositionVisible ( final int position ) ; } <nb> public class StickyRecyclerHeadersDecoration extends RecyclerView . ItemDecoration for ( int i = NUMBER0 ; i < mH...
Added a check when searching for position of header that the header found is visible
<nb> public class DefaultInvoiceDao extends EntityDaoBase < InvoiceModelDao , Invoice , I break ; } } + + SINGLE }
add TODO in CBA rebalancing
<nb> package NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public enum ReadType { COMMENT <nb> package NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT ...
Update the javadoc for read write tachyon and understorage types
<nb> public class NotificationsListFragment extends Fragment } if ( ! NetworkUtils . isNetworkAvailable ( getActivity ( ) ) ) { - mSwipeRefreshLayout . setRefreshing ( true ) ; + mSwipeRefreshLayout . setRefreshing ( false ) ; return ; }
Disable PTR when there is no network connection
<nb> public class UserPresenceView extends LinearLayout { } } catch ( RemoteException e ) { - mHandler . showServiceErrorAlert ( ) ; + SINGLE } } <nb> public class UserPresenceView extends LinearLayout { if ( newPresence != null ) mPresence = newPresence ; } catch ( RemoteException e ) { - mHa...
remove server error dialogs as they are redundant user is offline
<nb> public class EnumTriangles implements PlanAssembler , PlanAssemblerDescription { edge = new Edge ( new PactString ( rdfObj ) , new PactString ( rdfSubj ) ) ; } - target . setField ( NUMBER0 , edge ) ; + target . setField ( NUMBER1 , edge ) ; LOG . debug ( STRING0 + edge ) ; return true ; <nb> pub...
Fixed EnumTriangles example works now with local test case
<nb> public interface AudioSource { public int getChannel ( ) ; COMMENT - COMMENT - COMMENT - public void play ( ) ; - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void playInstance ( ) ; - - COMMENT COMMENT COMMENT COMMENT
remove some unnecessary methods from AudioSource interface
<nb> public final class ScriptMetaData implements MetaData . Custom { parser . nextToken ( ) ; switch ( parser . currentName ( ) ) { case STRING0 : - if ( parser . nextToken ( ) == Token . VALUE_STRING ) { - return parser . text ( ) ; - } else { - builder . copyCurrentStructure ( parser ) ; - } - brea...
removed duplicated code
<nb> public class TransactionInput extends ChildMessage implements Serializable { transient private WeakReference < Script > scriptSig ; COMMENT @ nullable - private final Coin value ; + private Coin value ; COMMENT COMMENT <nb> public class TransactionInput extends ChildMessage implements Serializabl...
When connecting outputs to inputs cache its value in the input
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ incubating public class IncrementalCompileOptions implements Serializable { private static final long serialVersionUID = NUMBER0 ;
made class Incubating
<nb> public class SetUpActivity extends Activity { private EditText mCountdownDays ; private EditText mCountdownHours ; private EditText mCountdownMins ; - private EditText mCountdownSecs ; private SeekBar mColorPickerRed ; + private EditText mCountdownSecs ; + private SeekBar mColorPickerRed ; private Se...
Fixed a style error
<nb> public class LocaleTypeDescriptor extends AbstractTypeDescriptor < Locale > { public Locale fromString ( String string ) { StringTokenizer tokens = new StringTokenizer ( string , STRING0 ) ; - String language = tokens . hasMoreTokens ( ) ? tokens . nextToken ( ) : STRING1 ; - String country = tokens . ha...
Fix string to locale conversion
<nb> public class SqlImpl implements Sql , Cloneable { } SINGLE catch ( SQLException e ) { - throw new DaoException ( format ( STRING0 , sql . toString ( ) ) , e ) ; + throw new DaoException ( format ( STRING1 , + sql . toString ( ) , + sql . toPreparedStatementString ( ) ) , e ) ; } }
add more information to SQL Exception
<nb> public class ThemePreviewFragment extends SherlockFragment { COMMENT protected void loadAuthenticatedUrl ( String url ) { try { - if ( mBlog == null ) { + if ( mBlog == null || url == null ) { return ; } String postData = String . format ( STRING0 ,
null check url
<nb> public class EurekaCodecCompatibilityTest { new CodecWrappers . LegacyJacksonJson ( ) ) ; - verifyAllPairs ( codingAction , Applications . class , jsonCodes ) ; + verifyAllPairs ( codingAction , ReplicationList . class , jsonCodes ) ; } @ test <nb> public class EurekaCodecCompatibilityTest { ne...
Fix log output in compatibility test
<nb> public final class Enums { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT @ gwtincompatible ( STRING0 ) public static Field getField ( Enum < ? > enumValue ) {
Add since for Enums getField
<nb> import 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...
Move ImageUtil to package util
<nb> public interface HttpServerRequest extends ReadStream < Buffer > { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added clarification on netSocket
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class UsefulTestCase extends TestCase { } } + @ contract ( STRING0 ) public static < T > T assertInstanceOf ( Obje...
add contract to UsefulTestCase assertInstanceOf
<nb> public abstract class DebugInfo implements Iterable < DebugItem > { public static DebugInfo newOrEmpty ( @ nonnull DexBuffer dexBuf , int debugInfoOffset , @ nonnull DexBackedMethodImplementation methodImpl ) { if ( debugInfoOffset == NUMBER0 ) { - new EmptyDebugInfo ( methodImpl . method ) ; + return ne...
Fix an error when getting parameters on a method with no debug info
<nb> public class TransactionManagementCompilerAutoConfiguration extends @ override public void applyDependencies ( DependencyCustomizer dependencies ) { - dependencies . ifAnyMissingClasses ( - STRING0 ) . add ( - STRING1 , STRING2 , - dependencies . getProperty ( STRING3 ) ) ; + dependencies + . ifA...
Add spring jdbc as well if necessary
<nb> public abstract class PGL { static protected int smoothToSamples ( int smooth ) { if ( smooth == NUMBER0 ) { + SINGLE return NUMBER1 ; } else if ( smooth == NUMBER1 ) { + SINGLE return NUMBER2 ; } else { + SINGLE return smooth ; } }
add notes to smoothing numbers
<nb> public class PydevConsoleRunner extends PyConsoleRunner { return ; } final ArrayList < String > args = new ArrayList < String > ( - Arrays . asList ( sdk . getHomePath ( ) , STRING0 , PythonHelpersLocator . getHelperPath ( STRING1 ) ) ) ; + Arrays . asList ( sdk . getHomePath ( ) , PythonHelpersLocator ....
Remove redundant u argument in console runners
<nb> public class FileWatcher { kind = ChangeKind . valueOf ( command ) ; } catch ( IllegalArgumentException e ) { - LOG . error ( STRING0 + command ) ; + if ( LOG . isDebugEnabled ( ) ) { + LOG . debug ( STRING0 + command ) ; + } + else { + LOG . error ( STRING0 + command ) ; + } continue ; }
Prevent log output from mixing
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { SINGLE SINGLE SINGLE + poller . removeFromPoller ( socket ) ; connections . remove ( Long . valueOf ( socket ) ) ; destroySocket ( socket , running ) ; }
Fix error showing in unit tests when socket is closed while still in poller
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal if ( ecLevel != null ) { intent . putExtra ( Intents . Scan . RESULT_ERROR_CORRECTION_LEVEL , ecLevel ) ; } + @ suppresswarnings ( STRING0 ) Iterable < byte [ ] > byteSegments = ( Iterable < byte [ ] > ) metadata . get ( R...
Suppress one compile warning
<nb> public enum SuperMethodCall implements Instrumentation { @ override public boolean equals ( Object other ) { return this == other || ! ( other == null || getClass ( ) != other . getClass ( ) ) - && instrumentationTarget . equals ( ( ( Appender ) other ) . instrumentationTarget ) ; + && instrumentationTar...
Updated object properties