diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class JavaTestDocsGenerator extends AsciiDocGenerator public JavaTestDocsGenerator ( String title ) { - super ( STRING0 , title ) ; + super ( title , STRING0 ) ; } @ override
adjusting the DocsGenerator
<nb> public class TimerRouteWithTracerTest extends TimerRouteTest { return new RouteBuilder ( ) { public void configure ( ) { getContext ( ) . addInterceptStrategy ( new Tracer ( ) ) ; - from ( STRING0 ) . to ( STRING1 ) ; + from ( STRING0 ) . to ( STRING1 , STRING2 ) ; } } ; }
Fixed failing unit test on some servers reported by TC
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; COMMENT <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - @ target ( FIELD ) + @ target ( { FIELD , PARAMETER } ) @ retention ( RUNTIME ) @ documented public ...
Add PARAMETER ElementType to Mock
<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 ; import N...
moving settings to the first page
<nb> public class DVParser { TreeTransformer transformer = buildTrainTransformer ( dvparser . getOp ( ) ) ; Treebank treebank = dvparser . getOp ( ) . tlpParams . memoryTreebank ( ) ; ; - if ( trainTreebankPath == null ) { - if ( System . getProperty ( STRING0 ) . startsWith ( STRING1 ) ) { - trainTreebankP...
Remove dead code
<nb> public class ContactList extends ImEntity { SINGLE Contact contact = getContact ( address ) ; - if ( contact != null ) - { - if ( containsContact ( contact ) ) { - throw new ImException ( ImErrorInfo . CONTACT_EXISTS_IN_LIST , - STRING0 ) ; - } - } - else + if ( contact == null ) { cont...
don t throw exception here as want to allow retry for sub
<nb> public class ThriftConverter < M extends TBase < ? , ? > > implements BinaryConverter < M M message = typeRef . safeNewInstance ( ) ; deserializer . deserialize ( message , messageBuffer ) ; return message ; - } catch ( TException e ) { + } catch ( Exception e ) { + SINGLE + SINGLE throw new Binary...
fix the catch block for real
<nb> public class IssueDoc extends BaseDoc implements Issue { @ override @ checkfornull public Duration debt ( ) { - SINGLE Integer debt = getNullableField ( IssueNormalizer . IssueField . DEBT . field ( ) ) ; return ( debt != null ) ? Duration . create ( new Long ( debt ) ) : null ; }
quality flaw removed todo
<nb> public class PeerGroup extends AbstractIdleService { long pingTime ; } - COMMENT - protected static Peer selectDownloadPeer ( List < Peer > peers ) { + COMMENT + COMMENT + COMMENT + COMMENT + protected Peer selectDownloadPeer ( List < Peer > peers ) { SINGLE SINGLE SINGLE
make selectDownloadPeer non static so users can override it and control selection behaviour
<nb> public enum ExceptionMessage { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
SMALLFIX Fix javadoc format
<nb> public class TaskListActivity extends ListActivity implements OnScrollListener , R . id . progressBar , new Runnable ( ) { @ override public void run ( ) { - loadTaskListContent ( true ) ; + try { + loadTaskListContent ( true ) ; + } catch ( IllegalStateException e ) { + SINGLE + SINGLE + } }...
Try catch around sync finished callback in case activity was killed for any reason
<nb> public class ForkingTaskRunnerConfig STRING0 , STRING1 , STRING2 , - STRING3 + STRING3 , + STRING4 ) ; public String getTaskDir ( )
Add java io tmpdir to allowedPrefixes
<nb> public class AccountSettings extends K9PreferenceActivity { while ( iter . hasNext ( ) ) { Folder folder = iter . next ( ) ; - if ( mAccount . getOutboxFolderName ( ) . equals ( folder . getName ( ) ) ) + if ( mAccount . getOutboxFolderName ( ) . equalsIgnoreCase ( folder . getName ( ) ) ) { iter . r...
When making sure not to offer up the outbox as a potential folder for
<nb> public class Jsonschema2Pojo { extension = STRING0 + extension ; } if ( fileName . endsWith ( extension ) ) { - fileName = fileName . substring ( NUMBER0 , fileName . length ( ) - extension . length ( ) ) ; + fileName = removeEnd ( fileName , extension ) ; extensionRemoved = true ; break ; }
Updated fileExtensions to use removeEnd
<nb> public abstract class AbstractSecurityInterceptor implements InitializingBean , } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Corrected Javadoc typos
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Standalone { printUsageAndExit ( ) ; } - instance . loadAndRunBuild ( projectPaths . get ( NUMBER0 ) ) ; + final String projectPath = ( new File ( projectPaths . get...
convert relative path to project passed in arguments into absolute path
<nb> import NAMESPACE ; public class BatchAutoConfiguration { @ bean + @ conditionalonmissingbean ( BatchDatabaseInitializer . class ) public BatchDatabaseInitializer batchDatabaseInitializer ( ) { return new BatchDatabaseInitializer ( ) ; }
Make sure Batch autoconfig only gets inlcuded once
<nb> import NAMESPACE ; public interface ClassDefinition { COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT FieldDefinition getField ( String name ) ; COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface ClassDefinition { FieldDefinition getField ( int fieldIn...
ClassDefinition improved javadoc
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ArrayRewriter extends TreeVisitor { private MethodInvocation createInvocation ( ArrayCreation node ) { ITypeBinding arrayType = node . getTypeBinding ( ) ; as...
Use new variants of array creation methods when generation for ARC
<nb> public class PsiTypeElementImpl extends CompositePsiElement implements PsiTypeEl @ notnull public PsiAnnotation addAnnotation ( @ notnull @ nonnls String qualifiedName ) { - throw new UnsupportedOperationException ( ) ; + throw new UnsupportedOperationException ( ) ; SINGLE } }
removed jmock dep
<nb> public class ExampleListActivity extends ListActivity { startActivity ( new Intent ( this , EmiterIntermediateExampleActivity . class ) ) ; break ; case NUMBER0 : - startActivity ( new Intent ( this , EmiterWithGravityExampleActivity . class ) ) ; + startActivity ( new Intent ( this , EmiterTimeLimitedEx...
fixed correct index for each example
<nb> public class HashedWheelTimer implements Timer { this ( Executors . defaultThreadFactory ( ) ) ; } - public HashedWheelTimer ( - long tickDuration , TimeUnit unit , int ticksPerWheel ) { + public HashedWheelTimer ( long tickDuration , TimeUnit unit ) { + this ( Executors . defaultThreadFactory ( ) , ...
Added more convenience constructors to HashedWheelTimer
<nb> import NAMESPACE ; public class TimeUUIDSerializer extends UUIDSerializer { + public static final TimeUUIDSerializer instance = new TimeUUIDSerializer ( ) ; + @ override public void validate ( ByteBuffer bytes ) throws MarshalException { <nb> public class CompositeTypeTest extends SchemaLoader ...
Fix unit tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EmmetPreviewHint extends LightweightHint implements Disposable { @ override public void editorReleased ( @ notnull EditorFa...
hide preview on release editor
<nb> class Clicker { } catch ( SecurityException e ) { Assert . assertTrue ( STRING0 , false ) ; } - dialogUtils . waitForDialogToOpen ( WAIT_TIME , true ) ; + dialogUtils . waitForDialogToOpen ( WAIT_TIME , false ) ; boolean textShown = waiter . waitForText ( text , NUMBER0 , WAIT_TIME , false ) != null ; ...
Set waitForDialog to not sleep in clickOnMenuItem
<nb> abstract class ConnectionPool < T extends RedisConnection > { } } - StringBuilder errorMsg = new StringBuilder ( STRING0 ) ; + StringBuilder errorMsg = new StringBuilder ( STRING1 ) ; SINGLE SINGLE SINGLE
Publish Subscribe exhausted connection poll error message fixed
<nb> public class MediaAddFragment extends Fragment implements LaunchCameraCallback { } protected void onPostExecute ( Uri newUri ) { + if ( getActivity ( ) == null ) + return ; + if ( newUri != null ) { String path = getRealPathFromURI ( newUri ) ; queueFileForUpload ( path ) ; <nb> public class Ed...
Adding check that activity is still around after downloading media
<nb> public class RangelessBitmapDocIdIterator implements BlockDocIdIterator { public int next ( ) { SINGLE if ( currentDocId == Constants . EOF || ! iterator . hasNext ( ) ) { + currentDocId = Constants . EOF ; return Constants . EOF ; }
Fix infinite loop in RangelessBitmapDocIdIterator
<nb> public class IdeFrame extends JFrame implements DataProvider { myLayoutFocusTraversalPolicy . setOverridenDefaultComponent ( component ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + public synchronized void setMaximizedBounds ( Rectangle bounds ) { + super . setMaximizedBounds ( null ) ; + } ...
Fixing strange Alloy behavior of changing maximized frame size
<nb> public class ClusterRuleSet extends RuleSetBase { STRING0 , STRING1 ) ; + digester . addObjectCreate ( channelPrefix + STRING2 , + null , SINGLE + STRING3 ) ; + digester . addSetProperties ( channelPrefix + STRING2 ) ; + digester . addSetNext ( channelPrefix + STRING2 , + STRING4 , + STRING5 ) ...
Add support for configurations of ChannelListener and MembershipListener in server xml
<nb> public class Projects implements OpenProjectFileHandler , newProject . getProjectFile ( ) ) . getParentPathString ( ) ; - packratServer_ . bootstrap ( projDir , new VoidServerRequestCallback ( ) { + packratServer_ . bootstrap ( projDir , new VoidServerRequestCallback ( indicator ) { @ override publ...
Add indicator on progress
<nb> public class MongoQueryCursorTest extends DatabaseTestCase { @ override public void run ( ) { try { - Thread . sleep ( NUMBER0 ) ; + Thread . sleep ( NUMBER1 ) ; collection . insert ( new Document ( STRING0 , NUMBER2 ) . append ( STRING1 , new BSONTimestamp ( NUMBER3 , NUMBER4 ) ) ) ; } catch ( Inter...
Shorten sleep time
<nb> public class B2CConverter { leftovers . position ( NUMBER0 ) ; } - public boolean isUndeflow ( ) { - return ( leftovers . position ( ) > NUMBER0 ) ; - } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public void convert ( ByteChu...
Remove one deprecated and one unused method
<nb> public class KeyguardViewManager { stretch , stretch , type , flags , PixelFormat . TRANSLUCENT ) ; lp . softInputMode = WindowManager . LayoutParams . SOFT_INPUT_ADJUST_RESIZE ; lp . windowAnimations = com . android . internal . R . style . Animation_LockScreen ; + lp . screenOrientation = enableScreenRot...
Prevent momentary switch of keyguard to landscape
<nb> public class PathListing { return paths ; } + @ suppresswarnings ( STRING0 ) private static ImmutableSortedSet < Path > applyTotalSizeFilter ( ImmutableSortedSet < Path > paths , FilterMode filterMode , <nb> public class PathListing { int limitIndex = NUMBER0 ; long totalSize = NUMBER0 ; for ...
Ignore FileNotFoundException in PathListing applyTotalSizeFilter
<nb> public class ValidationException extends GrailsException { b . append ( msg ) . append ( STRING0 ) ; } for ( ObjectError error : errors . getAllErrors ( ) ) { - b . append ( STRING1 ) . append ( error ) . append ( STRING2 ) ; + b . append ( STRING3 ) . append ( error ) . append ( STRING2 ) ; } return...
fix failing tests
<nb> public class ClusteredEventBus extends LocalEventBus { for ( ConnectionHolder holder : connections . values ( ) ) { holder . close ( ) ; } - completionHandler . handle ( ar ) ; + if ( completionHandler != null ) { + completionHandler . handle ( ar ) ; + } } ) ; } else { - completionHandler . ha...
Check for null completion handler in event bus close
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve records . add ( record ) ; } - if ( ( ZWaveConfigurationCommandClass ) node . getCommandClass ( CommandClass . WAKE_UP ) != null ) { + if ( ( ZWaveWakeUpCommandClass ) node . getCommandClass ( CommandClass . WAKE_UP ) != nu...
Fix error casting wakeup class
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT COMMENT public final class IdMappingUtil { <nb> public final class IdMappingUtil { private static final Splitter LINE_SPLITTER = Splitter . on ( NEW_LINE ) . omitEmptyStrings ( ) ; + SINGLE + private IdMappingUtil ( ) { } + COMMENT COMMEN...
Add private constructor to prevent instantiation
<nb> public class DumbServiceImpl extends DumbService implements Disposable , Modifica try { ApplicationManager . getApplication ( ) . invokeAndWait ( runnable , ModalityState . defaultModalityState ( ) ) ; } + catch ( ProcessCanceledException ignore ) { + SINGLE + } catch ( Exception e ) { LOG . error ...
ignore PCE in DumbService invokeAndWait
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec case READ_CHUNK_FOOTER : { String line = readIntoCurrentLine ( buffer ) ; if ( line . trim ( ) . length ( ) == NUMBER0 ) { - return reset ( ) ; + if ( mergeChunks ) { + return reset ( ) ; + } else { + reset ( ) ; +...
Fixed a bug where HttpRequest message is decoded twice
<nb> public final class SQLiteDatabase extends SQLiteClosable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class SQLiteDatabase extends SQLiteClosable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo and build
<nb> public class BalloonImpl implements Balloon , IdeTooltip . Ui { @ override public boolean isInside ( @ notnull RelativePoint target ) { + if ( myComp == null ) return false ; Component cmp = target . getOriginalComponent ( ) ; if ( ! cmp . isShowing ( ) ) return true ;
Check myComp for null
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class DefaultShellStep extends ShellStep { private ImmutableList < String > args ; - public DefaultShellStep ( String . . . args ) { - this ( ImmutableList . copyOf ( args ) ) ; + publ...
Add working directory support to DefaultShellStep
<nb> public class RmdOutput implements RmdRenderStartedEvent . Handler , } - * / ; private final native int getScrollPosition ( JavaScriptObject win ) COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT ; private...
add exception safety for fetching R Markdown positions for desktop Shiny docs
<nb> public class ReaderSubsActivity extends AppCompatActivity return ; } + showAddUrlProgress ( ) ; final ReaderTag tag = ReaderUtils . createTagFromTagName ( tagName , ReaderTagType . FOLLOWED ) ; ReaderActions . ActionListener actionListener = new ReaderActions . ActionListener ( ) { @ override pub...
Add progress spinner while adding tag
<nb> public class ShellSpout implements ISpout { return ; } else if ( command . equals ( STRING0 ) ) { handleLog ( shellMsg ) ; + } else if ( command . equals ( STRING1 ) ) { + handleError ( shellMsg . getMsg ( ) ) ; } else if ( command . equals ( STRING2 ) ) { String stream = shellMsg . getStream ( ) ; ...
add support for error command in ShellSpout
<nb> public abstract class GroovyNamedArgumentProvider { } @ override + public PsiElement bindToElement ( @ notnull PsiElement element ) throws IncorrectOperationException { + if ( element == myNavigationElement ) return getElement ( ) ; + return super . bindToElement ( element ) ; + } + + @ override ...
References to Class must implement method bindToElement because it called on renaming on containing class
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AdminConsolePlugin implements Plugin { public void initializePlugin ( PluginManager manager , File pluginDir ) { this . pluginDir = pluginDir ; try { - File logDir ; - Strin...
Removed unused code
<nb> public class ProcessEs6Modules extends AbstractPostOrderCallback { STRING0 + STRING1 ) ; + SINGLE + SINGLE + SINGLE rewriteRequires ( script ) ; String moduleName = toModuleName ( loader . getLoadAddress ( t . getInput ( ) ) ) ;
Add a comment explaining why rewriteRequires needs to be where it is
<nb> public class Hop extends AbstractPayload implements Comparable < Hop > , Drawable { GeometryFactory factory = new GeometryFactory ( new PrecisionModel ( PrecisionModel . FLOATING ) , NUMBER0 ) ; Stop stop1 = start . getStop ( ) ; - Stop stop2 = start . getStop ( ) ; + Stop stop2 = end . getStop ( ) ; ...
fix bug in geometry computation on hops
<nb> public class StateRecoveryManager < STATE > SINGLE } - fileSystem . open ( file , STRING0 ) . close ( ) ; - return result ; } }
Remove useless code
<nb> public class NameMaps { propertyMap . put ( property , serverName ) ; localNameMap . put ( property . name , property ) ; serverNameMap . put ( property . name , serverName ) ; - if ( excludedFromOustanding ) + if ( excludedFromOustanding && excludedFromOutstandingSet != null ) excludedFromOutstandingS...
Fixed a minor bug in NameMaps initialization
<nb> public class FunctionDescriptorUtil { public static < D extends CallableDescriptor > D alphaConvertTypeParameters ( D candidate ) { return ( D ) candidate . substitute ( MAKE_TYPE_PARAMETERS_FRESH ) ; } - - public static FunctionDescriptor getInvokeFunction ( @ notnull JetType functionType ) { - assert...
Removed method which had never been used
<nb> public class VibratorService extends IVibratorService . Stub SINGLE private void startVibrationLocked ( final Vibration vib ) { try { - if ( mLowPowerMode && vib . mStreamHint != AudioManager . STREAM_RING ) - return ; + if ( mLowPowerMode && vib . mStreamHint != AudioManager . STREAM_RING ) { + retu...
Minor coding style changes
<nb> public class XDebuggerEvaluationDialog extends DialogWrapper { } @ override + public void doCancelAction ( ) { + getInputEditor ( ) . saveTextInHistory ( ) ; + super . doCancelAction ( ) ; + } + + @ override protected String getDimensionServiceKey ( ) { return STRING0 ; }
ESC should not drop code
<nb> public class CudaLoader { m_libCudas = new ArrayList < String > ( ) ; m_rootbeers = new ArrayList < String > ( ) ; + if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) { + m_libCudas . add ( STRING2 ) ; + m_rootbeers . add ( STRING3 ) ; + extract ( STRING3 ) ; + } + else if ( File . sep...
Add OSX support in loader
<nb> package NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT + COMMENT COMMENT public class VanillaHealthIndicator extends AbstractHealthIndicator { <nb> import static NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class Van...
update javadoc and test method to reflect current implementation
<nb> public class AuditOwnerCommand extends AbstractCommand { SINGLE Preconditions . checkState ( rootPath . isAbsolute ( ) ) ; Path targetBasePath = MorePaths . relativize ( rootPath , rootPath . resolve ( basePath . get ( ) ) ) ; - String targetBaseName = STRING0 + targetBasePath . toString ( ) ; + String t...
Fix buck query on Windows
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove useless import
<nb> public class XmlBlock extends AbstractXmlBlock { } ASTNode child = node . getFirstChildNode ( ) ; - if ( child == null && ! ( node instanceof PsiWhiteSpace ) && node . getElementType ( ) != TokenType . ERROR_ELEMENT ) { + if ( child == null && ! ( node instanceof PsiWhiteSpace ) && node . getElementType ...
don t create empty HTML blocks
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + @ awaitsfix ( bugUrl = STRING0 ) public class RetryTests extends ReindexTestCase { COMMENT COMMENT
reindex Mark test awaits fix because it is unstable
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RefineryRecipe implements Comparable < RefineryRecipe > { } } + public static SortedSet < RefineryRecipe > getRecipes ( ) { + return Collections . unmodifiableSortedSet ( recipes ) ; + } +...
Add way to query for refinery recipes
<nb> public class ImpassableRoadsLayer extends OsmandMapLayer implements ContextMenuL float x = tileBox . getPixXFromLatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) ; float y = tileBox . getPixYFromLatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) ; float left = x - roadWorkI...
Fixed Avoid road icon positioning
<nb> public class PythonCommenter implements Commenter { return STRING0 ; } - public boolean isLineCommentPrefixOnZeroColumn ( ) { - return false ; - } - public String getBlockCommentPrefix ( ) { return null ; }
dropped old and unused method
<nb> public class ChromeSettings extends BrowserSpecificSettings { private int myRemoteShellPort = DEFAULT_REMOTE_SHELL_PORT ; public ChromeSettings ( ) { - } @ nullable
don t pass remote shell port parameter twice
<nb> public class WebView extends AbsoluteLayout private native Rect nativeFocusCandidatePaddingRect ( ) ; COMMENT private native String nativeFocusCandidateText ( ) ; - COMMENT + COMMENT COMMENT COMMENT COMMENT
nativeFocusCandidateTextSize now returns a float
<nb> public class ChannelDecisionManagerImplTests extends TestCase { Iterator iter = config . getConfigAttributes ( ) ; if ( failIfCalled ) { - fail ( STRING0 ) ; + fail ( STRING1 + configAttribute ) ; } while ( iter . hasNext ( ) ) { ConfigAttribute attr = ( ConfigAttribute ) iter . next ( ) ; - ...
Must observe symmetry requirement of Object equals Object contract
<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { return false ; } - socketBufferHandler . configureReadBufferForRead ( ) ; if ( ! socketBufferHandler . isReadBufferEmpty ( ) ) { readPending . release ( ) ; return true ;
Minor optimisation remove unnecessary call
<nb> public class GitFetcher { COMMENT public GitFetchResult fetch ( @ notnull GitRepository repository ) { SINGLE - GitFetchResult fetchResult = GitFetchResult . success ( ) ; - if ( myFetchAll ) { - fetchResult = fetchAll ( repository , fetchResult ) ; - } - else { - fetchResult = fetchCurrentRemote...
remove redundant fetch result initialization
<nb> public class BaseFillMode extends AbstractFillMode { listPlaceholder . add ( i , extraMoveNodePlaceholder ) ; i ++ ; SINGLE + SINGLE + penPosFrom = PathNodeUtils . calculatePenPosition ( from ) ; + penPosTo = PathNodeUtils . calculatePenPosition ( to ) ; + } else if ( Character . isLowerCase ( no...
fixed bug on basefillMode recalculating penpos when balancing z with extra m
<nb> public class EduAdaptiveStepicConnector { for ( List < String > sample : step . options . samples ) { if ( sample . size ( ) == NUMBER0 ) { builder . append ( STRING0 ) ; - builder . append ( sample . get ( NUMBER1 ) ) ; + builder . append ( StringUtil . replace ( sample . get ( NUMBER1 ) , STRING1 , STR...
In task text for adaptive courses display multiline samples correctly
<nb> public class AprLifecycleListener } if ( ( major != TCN_REQUIRED_MAJOR ) || ( minor < TCN_REQUIRED_MINOR ) || - ( patch < TCN_REQUIRED_PATCH ) ) { + ( minor == TCN_REQUIRED_MINOR && patch < TCN_REQUIRED_PATCH ) ) { log . error ( sm . getString ( STRING0 , major + STRING1 + minor + STRING1 + patch , ...
Fix the logic for the min version tests
<nb> class SelectiveCompiler implements org . gradle . api . internal . tasks . compile . Compile incrementalCompilationInitilizer . initializeCompilation ( spec , recompilationSpec . getClassNames ( ) ) ; if ( spec . getSource ( ) . isEmpty ( ) ) { - LOG . lifecycle ( STRING0 , clock . getTime ( ) ) ; + LOG ...
Tweaked a log message
<nb> public final class Files { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarify javadoc of Files move it doesn t work just like mv
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TraktAddFragment extends AddFragment { new ArrayList < SearchResult > ( ) ) ; int type = getArguments ( ) . getInt ( STRING0 ) ; - new Get...
Execute tasks in add activity on thread pool
<nb> class AppWidgetServiceImpl { for ( int i = NUMBER0 ; i < N ; i ++ ) { AppWidgetId id = mAppWidgetIds . get ( i ) ; if ( backupTarget . equals ( id . host . packageName ) - || backupTarget . equals ( id . provider . info . provider . getPackageName ( ) ) ) { + || ( id . provider != null && backupTarget . ...
Unlinked providers STILL shouldn t cause crashes
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class WrapperListAdapterImpl implements WrapperListAdapter { + public abstract class Wr...
Fix ClassCastException on no BaseAdapter
<nb> public class ColorStateList implements Parcelable { defaultAlphaMod = FLOAT0 ; } + SINGLE + SINGLE + SINGLE + themeAttrsList [ i ] = a . extractThemeAttrs ( themeAttrsList [ i ] ) ; + if ( themeAttrsList [ i ] != null ) { + hasUnresolvedAttrs = true ; + } + final int baseColor = a . getColo...
Prevent crash when ColorStateList has unresolved attrs
<nb> public class FixedBitSingleValueMultiColReader implements Closeable { COMMENT COMMENT COMMENT - private int computeBitOffset ( int row , int col ) { - final int offset = row * rowSizeInBits + colBitOffSets [ col ] ; + private long computeBitOffset ( int row , int col ) { + final long offset = ( ( lon...
Changed back bit offset positions to long
<nb> public class Template extends Script { return template ; } - @ suppresswarnings ( STRING0 ) public static Script parse ( Map < String , Object > config , boolean removeMatchedEntries , ParseFieldMatcher parseFieldMatcher ) { return new TemplateParser ( Collections . emptyMap ( ) , MustacheScriptEngineS...
Remove unchecked warnings rendered unnecessary
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper { return b . headers ; } + public Map < String , String [ ] > queryStringsMap ( ) { + return b . queryStrings ; + } + public AtmosphereRequest method ( String m ) { b . method ( m ) ; return this ;
Expose QueryString Map
<nb> public class DrmManagerClient { COMMENT public int acquireRights ( DrmInfoRequest drmInfoRequest ) { DrmInfo drmInfo = acquireDrmInfo ( drmInfoRequest ) ; + if ( null == drmInfo ) { + return ERROR_UNKNOWN ; + } return processDrmInfo ( drmInfo ) ; }
Do not call processDrmInfo if acquireDrmInfo returns null
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AnalystWorker implements Runnable { COMMENT private String instanceType ; - COMMENT - private String machineId = UUID . randomUUID ( ) . toString ( ) . replaceAll ( STRING0 , ...
add logback property definer for machine ID
<nb> class InsertQueryImpl < R extends Record > extends AbstractStoreQuery < R > implements . visit ( getInto ( ) ) . sql ( STRING0 ) ; insertMaps . insertMaps . get ( NUMBER0 ) . toSQLReferenceKeys ( context ) ; - context . sql ( STRING0 ) - . end ( INSERT_INSERT_INTO ) + context . end ( INSERT_INSERT_INTO...
Fixed excess rendered whitespace
<nb> public class MySQLSqlStatementBuilderSmallTest { } @ test + public void stringEndingInDoubleQuoteMultiple ( ) throws Exception { + builder . addLine ( STRING0 + + STRING1 ) ; + assertTrue ( builder . isTerminated ( ) ) ; + } + + @ test public void stringEndingInDoubleQuoteComplex ( ) throws E...
Added yet another test case
<nb> public abstract class Neurons { final private static void rescale_weights ( final DenseRowMatrix w , final int row , final float max_w2 ) { final int cols = w . cols ( ) ; final int idx = row * cols ; - SINGLE - float r2 = Utils . approxSumSquares ( w . raw ( ) , idx , idx + cols ) ; + float r2 = Utils...
Disable use of approxSumSquares
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Missing license header information
<nb> public class WordPress extends Application { case ConnectionResult . SERVICE_MISSING : case ConnectionResult . SERVICE_DISABLED : case ConnectionResult . SERVICE_INVALID : - AppLog . w ( T . NOTIFS , STRING0 + connectionResult ) ; + AppLog . w ( T . NOTIFS , STRING0 + + GooglePlayServicesUtil . getErro...
Get error message in case of an error with Play Services
<nb> public class PlacesActivity extends ActionBarActivity { if ( q . location == null ) return Observable . empty ( ) ; double latitude = q . location . getLatitude ( ) ; - double longitude = q . location . getLatitude ( ) ; + double longitude = q . location . getLongitude ( ) ; LatLngBounds bounds = new L...
Fix issue where latitude was used instead of longitude
<nb> public abstract class AbstractTypeAwareCheck extends Check { getId ( ) , this . getClass ( ) , null ) ; - throw new RuntimeException ( msg . getMessage ( ) ) ; + throw new IllegalStateException ( msg . getMessage ( ) ) ; } if ( ! suppressLoadErrors ) { <nb> public class ClassResolver { catch ( ...
Replace RuntimeException with IllegalStateException
<nb> public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C nameComponent . append ( STRING0 + KeymapUtil . getShortcutText ( shortcut ) + STRING1 , REGULAR_ITALIC_ATTRIBUTES ) ; } - final String groupName = actionWithParentGroup . getGroupName ( ) ; + String groupName = actionWith...
don t show duplicate group for intention actions
<nb> public class AccountSetupIncoming extends K9Activity implements OnClickListener securityTypesAdapter . setDropDownViewResource ( android . R . layout . simple_spinner_dropdown_item ) ; mSecurityTypeView . setAdapter ( securityTypesAdapter ) ; + int index = getSecurityTypePosition ( mConnectionSecurityChoic...
Don t use enum ordinal as array index
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class BeanPropertyRenameHandler implements RenameHandler { final BeanProperty property =...
handle unit test mode
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE } else { - throw new UnsupportedOperationException ( STRING0 ) ; + logger . warn ( STRING0 ) ; } }
Don t output a stacktrace when removenode force is errantly called
<nb> public class IdeaModelBuilder implements BuildsModel { . setExported ( d . getExported ( ) ) ; if ( d . getModuleVersion ( ) != null ) { - defaultDependency . setExternalGradleModule ( new DefaultGradleModuleVersion ( d . getModuleVersion ( ) ) ) ; + defaultDependency . setGradleModuleVersion ( new Defau...
Housekeeping updated the name for consistency
<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...
Fix stray import yay IntelliJ
<nb> public abstract class DataConnection extends StateMachine { log ( STRING0 + cp . tag + STRING1 + mTag ) ; } result = DataCallState . SetupResult . ERR_Stale ; + } else if ( response . status != NUMBER0 ) { + result = DataCallState . SetupResult . ERR_RilError ; + result . mFailCause = FailCause . fromI...
Fix handling of PDP setup failure
<nb> public final class EarClippingTriangulator { final ArrayList < Vector2 > vertices = new ArrayList < Vector2 > ( polygon . size ( ) ) ; vertices . addAll ( polygon ) ; + COMMENT + if ( ! areVerticesClockwise ( vertices ) ) { + Collections . reverse ( vertices ) ; + } + COMMENT COMMENT COMMENT ...
Only correct the winding order once
<nb> public class MongoDbEndpoint extends DefaultEndpoint { LOG . debug ( STRING0 , e ) ; continue ; } + SINGLE break ; } } - String msg = STRING1 + readPreference - + STRING2 ; - throw new IllegalArgumentException ( msg ) ; + SINGLE + if ( getReadPreference ( ) == null ) { + String msg = ST...
Fix the old glitch by MongoDbEndpoint setReadPreference which would ALWAYS throw IllegalArgumentException