diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> class ContextImpl extends Context { mResourcesManager = ResourcesManager . getInstance ( ) ; final int displayId = ( createDisplayWithId != Display . INVALID_DISPLAY ) - ? createDisplayWithId : getDisplayId ( ) ; + ? createDisplayWithId + : ( display != null ) ? display . getDisplayId ( ) : Display . D...
Fixed issue with using wrong display id when creating context for displays
<nb> public class ShelvedChangesViewManager implements ProjectComponent { if ( changeLists . size ( ) == NUMBER0 ) { if ( myContent != null ) { myContentManager . removeContent ( myContent ) ; - myContentManager . selectContent ( STRING0 ) ; + myContentManager . selectContent ( ChangesViewContentManager . LOC...
remove hardcoded literal
<nb> public class StatementParser { parseStatements ( builder , ( parseUntilEof ? BraceMode . TILL_LAST : BraceMode . TILL_FIRST ) ) ; final boolean greedyBlock = ! expectOrError ( builder , JavaTokenType . RBRACE , JavaErrorMessages . message ( STRING0 ) ) ; + builder . getTokenType ( ) ; SINGLE done ( cod...
Fix Not all of the tokens inserted error
<nb> public class HttpRequestTest extends ServerTestCase { assertEquals ( STRING0 , HttpRequest . append ( STRING1 , STRING2 , null , STRING3 , null ) ) ; } + + COMMENT + COMMENT + COMMENT + @ test ( expected = IllegalArgumentException . class ) + public void appendOddNumberOfParams ( ) { + HttpRequ...
Add test of odd number of param arguments
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract public class GenerateTestActionBase extends CodeInsightAction implement @ override public void invoke ( @ notnull Project project , @ notnull Ed...
Do not run test method generation in read only files
<nb> public class WebappClassLoader extends URLClassLoader sm . getString ( STRING0 , name ) ) ; } + SINGLE + SINGLE entry . loadedClass = clazz ; entry . binaryContent = null ; - entry . source = null ; entry . codeBase = null ; entry . manifest = null ; entry . certificates = null ; + SINGLE ...
Testing the resources refactoring with Atlassian Jira
<nb> import static NAMESPACE ; @ suppresswarnings ( STRING0 ) @ privateapi - public final class HazelcastInstanceImpl + public class HazelcastInstanceImpl implements HazelcastInstance { public final Node node ;
Make HazelcastInstanceImpl non final to be able to mock
<nb> abstract class AbstractRecordStore implements RecordStore < Record > { MapConfig mapConfig = mapContainer . getMapConfig ( ) ; Record record = recordFactory . newRecord ( value ) ; + record . setCreationTime ( now ) ; record . setLastAccessTime ( now ) ; record . setLastUpdateTime ( now ) ; - record ...
First set creation time when creating records
<nb> public final class ActualSocketServer extends BaseActualServer < SocketResponseSet } public SocketServer mergeHttpServer ( final ActualSocketServer thatServer ) { - ActualSocketServer newServer = newBaseServer ( this . getPort ( ) ) ; + ActualSocketServer newServer = newBaseServer ( this . getPort ( ) . ...
used second port if first port is absent when merging socket servers
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Extracted some important comments in the example code to a new section
<nb> public class JerseyIntegrationTest extends JerseyTest { } private SessionFactory sessionFactory ; - private TimeZone defaultTZ ; @ override @ after public void tearDown ( ) throws Exception { - TimeZone . setDefault ( defaultTZ ) ; super . tearDown ( ) ; if ( sessionFactory != null ) { <n...
Don t override the JVM timezone in a Hibernate integration test
<nb> public class GameRegistry COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class GameRegistry public static ItemStack findItemStack ( String modId , String name , int stackSize ) { ItemStack is = GameData . findItemStack ( modId , name ) . func_77946_l ( ) ; ...
Validate supplied stack size
<nb> public class AllIcons { public static class Welcome { public static final Icon CreateDesktopEntry = IconLoader . getIcon ( STRING0 ) ; SINGLE - public static final Icon CreateNewProject = IconLoader . getIcon ( STRING1 ) ; SINGLE - public static final Icon FromVCS = IconLoader . getIcon ( STRING2 ) ; SIN...
update sizes for icons
<nb> public class XmppBinding { Map < String , Object > answer = new HashMap < String , Object > ( ) ; PacketExtension jpe = xmppPacket . getExtension ( JivePropertiesExtension . NAMESPACE ) ; - if ( jpe != null && jpe instanceof JivePropertiesExtension ) { + if ( jpe != null && jpe instanceof JivePropertiesE...
Fix Checkstyle issues
<nb> public class AdviceTest { @ test public void testCannotInstantiateSuppressionMarker ( ) throws Exception { - Class < ? > type = Class . forName ( Advice . class . getName ( ) + STRING0 ) ; + Class < ? > type = Class . forName ( Advice . class . getName ( ) + STRING1 ) ; assertThat ( Modifier . isPrivat...
Fixed unit test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AstUtil { modifiers &= ~ ( Opcodes . ACC_PUBLIC | Opcodes . ACC_PROTECTED | Opcodes . ACC_PRIVATE ) ; field . setModifiers ( modifier...
don t run SpockTransform if java stub is generated
<nb> public class MessageGenerator extends AbstractGenerator { if ( message . hasFileOnRemoteHost ( ) ) { Message . FileParams fileParams = message . getFileParams ( ) ; content = fileParams . url . toString ( ) ; + packet . addChild ( STRING0 , STRING1 ) . addChild ( STRING2 ) . setContent ( content ) ; } el...
add obb url to unencrypted messages
<nb> public class CrawlerSessionManagerValve extends ValveBase { SINGLE if ( request . getRequestedSessionId ( ) == null ) { - SINGLE + SINGLE Enumeration < String > uaHeaders = request . getHeaders ( STRING0 ) ; String uaHeader = null ; if ( uaHeaders . hasMoreElements ( ) ) {
Fix comment typo
<nb> public class DrawHandler extends Handler { private int mSkipFrames ; + private static final int MAX_RECORD_SIZE = NUMBER0 ; + + private LinkedList < Long > mDrawTimes = new LinkedList < Long > ( ) ; + private Thread mThread ; private boolean mUpdateInNewThread ; <nb> public class DrawHandler ...
remove unneccessary code
<nb> public class ChatPanel extends JPanel } public void hideDialog ( ) { + this . isVisible = false ; + if ( Constants . TABBED_CHAT_WINDOW ) { this . chatWindow . removeChatTab ( this ) ; } <nb> public class ChatWindow extends JFrame { COMMENT COMMENT public void addChatTab ( ChatPanel chatPan...
Set the chat isVisible variable to true when the chat is shown and to false when closed or hidden
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class MaximumiminusjSuchThatAiGTAj { + public class MaximumIminusJSuchThatAiGTAj { class Node { int index ; <nb> public class MaximumiminusjSuchThatAiGTAj { } public static void main ( String args [ ] ) { - MaximumiminusjSuchThatAiGTAj m...
Renaming java file name
<nb> public class ProxyServerActor extends ServerActor < ProxyServerActor . Invocation , O . subclass ( Server . class ) . implement ( interfaces ) . implement ( java . io . Serializable . class ) - . method ( isDeclaredBy ( anyOf ( interfaces ) ) ) . intercept ( InvocationHandlerAdapter . of ( callOnVoidMethod...
Fix ByteBuddy breaking change
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class EmulatorView extends View implements GestureDetector . OnGestureListener { return true ; } + public boolean commitCorrection (...
Add commitCorrection to our InputConnection
<nb> public class GoSymbolContributor implements ChooseByNameContributor { @ override public NavigationItem [ ] getItemsByName ( String name , String pattern , Project project , boolean includeNonProjectItems ) { GlobalSearchScope scope = includeNonProjectItems ? GlobalSearchScope . allScope ( project ) : GlobalS...
Replace deprecated method
<nb> public class ChatManager { } else { chat = getThreadChat ( message . getThread ( ) ) ; + if ( chat == null ) { + SINGLE + chat = getUserChat ( StringUtils . parseBareAddress ( message . getFrom ( ) ) ) ; + } } if ( chat == null ) {
Improved logic to find correct chat
<nb> public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { private void putDevicesForJid ( String bareJid , List < Integer > deviceIds , SQLiteAxolotlStore store ) { for ( Integer deviceId : deviceIds ) { AxolotlAddress axolotlAddress = new AxolotlAddress ( bareJid , deviceId ) ; - Log . d ( C...
removed some very verbose logging from axolotl service
<nb> public final class FrameworkZips { String titleTemplate = jsonZip . getString ( STRING0 ) ; String urlTemplate = jsonZip . getString ( STRING1 ) ; boolean current = jsonZip . optBoolean ( STRING2 , false ) ; - Type type = jsonZip . optBoolean ( STRING3 , false ) ? Type . UNINSTALLER : Type . INSTALLER ; ...
Also generify the zip type parsing from the JSON
<nb> public class BlockPipeHolder extends BlockBCTile_Neptune implements ICustomPaint EnumWireBetween wireBetween = EnumWireBetween . VALUES [ part - NUMBER0 - NUMBER1 - NUMBER1 - NUMBER2 ] ; aabb = wireBetween . boundingBox ; } - SINGLE - return aabb == null ? null : aabb . offset ( pos ) ; + if ( part >= ...
Revert bounding box
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed unused imports
<nb> public class Frame extends Lockable < Frame > { COMMENT public Vec [ ] remove ( int [ ] idxs ) { for ( int i : idxs ) - if ( i < NUMBER0 || i >= _vecs . length ) + if ( i < NUMBER0 || i >= vecs ( ) . length ) throw new ArrayIndexOutOfBoundsException ( ) ; Arrays . sort ( idxs ) ; Vec [ ] res = new ...
Fix race condition for Vec remove int wasn t calling vecs first
<nb> public final class GeneratedAdapters { COMMENT COMMENT - COMMENT + COMMENT COMMENT public static < T > ModuleAdapter < T > initModuleAdapter ( Class < ? extends T > moduleClass ) throws ClassNotFoundException { <nb> public final class GeneratedAdapters { COMMENT COMMENT - COMMENT + COMM...
fix some javadoc links
<nb> public class JavaChangeSignatureDialog extends ChangeSignatureDialogBase < Paramet panel . setBorder ( new DottedBorder ( UIUtil . getTableForeground ( ) ) ) ; } } - panel . add ( field , BorderLayout . CENTER ) ; + panel . add ( field , BorderLayout . WEST ) ; return panel ; }
default value spans the whole line when type and parameter name are invisible
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
Delete unused imports
<nb> public enum Opcode public static Opcode getOpcodeByValue ( int opcodeValue ) { switch ( opcodeValue ) { case NUMBER0 : - return SPARSE_SWITCH_PAYLOAD ; - case NUMBER1 : return PACKED_SWITCH_PAYLOAD ; + case NUMBER1 : + return SPARSE_SWITCH_PAYLOAD ; case NUMBER2 : return ARRAY_PAYLOAD ; defau...
Fix the payload opcode values in Opcode getOpcodeByValue
<nb> public class JavaTextArea extends JEditTextArea { COMMENT COMMENT protected final MouseMotionAdapter gutterCursorMouseAdapter = new MouseMotionAdapter ( ) { - private int lastX ; SINGLE + private int lastX ; SINGLE @ override public void mouseMoved ( MouseEvent me ) {
Fix typo in comment
<nb> public class Pbkdf2PasswordEncoder implements PasswordEncoder { } private byte [ ] encodeAndConcatenate ( CharSequence rawPassword , byte [ ] salt ) { - return concatenate ( salt , encode ( rawPassword , salt ) ) ; + return encode ( rawPassword , salt ) ; } COMMENT <nb> public class Pbkdf2Passwor...
Remove double salt in Pbkdf2PasswordEncoder
<nb> public class DefaultConnection implements InternalConnection , BuildActionRunner , private ProviderOperationParameters toProviderParameters ( BuildParameters buildParameters ) { return adapter . adapt ( ProviderOperationParameters . class , buildParameters , BuildLogLevelMixIn . class ) ; } - - private s...
Remove now unused inner class
<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 ; impor...
use our NotNull Nullable instead of annotations from com sun
<nb> public final class JoinExpression implements Serializable { private static final long serialVersionUID = - NUMBER0 ; - private BooleanBuilder condition = new BooleanBuilder ( ) ; + private final BooleanBuilder condition = new BooleanBuilder ( ) ; private final Set < JoinFlag > flags = new LinkedHashS...
added final flag
<nb> public class DefaultFileRegion extends AbstractReferenceCounted implements FileR if ( position < NUMBER0 ) { throw new IllegalArgumentException ( STRING0 + position ) ; } - if ( count <= NUMBER0 ) { + if ( count < NUMBER0 ) { throw new IllegalArgumentException ( STRING1 + count ) ; } this . file = ...
Fix incorrect parameter validation in DefaultFileRegion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ManifestClassPathProcessor implements DeploymentUnitProcessor target . addToAttachmentList ( Attachments . CLASS_PATH_E...
Change handling of Class Path so it no longer sets up dependencies between deployments
<nb> public class ParserATNSimulator extends ATNSimulator { computeStartState ( dfa . atnStartState , outerContext , true ) ; - predictedAlt = execATNWithFullContext ( dfa , D , s0_closure , - input , startIndex , - outerContext , - D . configs . conflictingAlts . nextSetBit ( NUMBER0 ) ) ; - SINGLE -...
Add computed state to DFA before moving to full context simulation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BlockGenericPipe extends BlockContainer { } @ override + public boolean canBeReplacedByLeaves ( World world , int x , int y , int z ) { ...
Fix trees destroying pipes
<nb> public class Peer { private Channel channel ; private VersionMessage peerVersionMessage ; - boolean isAcked ; + private boolean isAcked ; private PeerHandler handler ; COMMENT <nb> public class Peer { processAlert ( ( AlertMessage ) m ) ; } else if ( m instanceof VersionMessage ) { peerVers...
Make isAcked private
<nb> public class FileIntegrityChecker extends MRTask < FileIntegrityChecker > { public static FileIntegrityChecker check ( File r ) { return new FileIntegrityChecker ( r ) . doAllNodes ( ) ; } public FileIntegrityChecker ( File root ) { - _root = PersistNFS . decodeFile ( new File ( root . getAbsolutePath ( ) ...
Unwrap a few statements from one line into multiple so they can be debugged
<nb> public class DumpLogicalLog return getTimeZone ( arguments . get ( STRING0 , DEFAULT_TIME_ZONE . getID ( ) ) ) ; } - protected static String [ ] filenamesOf ( String filenameOrDirectory , final String prefix ) + protected String [ ] filenamesOf ( String filenameOrDirectory , final String prefix ) { +...
Make sure DumpLogicalLog uses the provided file system
<nb> public class ConsoleCommandProvider implements CommandProvider { ConsoleInterpreter . handleUpdate ( args , console ) ; } else if ( arg . equals ( STRING0 ) ) { ConsoleInterpreter . handleStatus ( args , console ) ; + } else if ( arg . equals ( STRING1 ) ) { + ConsoleInterpreter . handleSay ( args , cons...
added the say command to the OSGi console
<nb> public class DTree extends Iced { DocGen . HTML . arrayTail ( sb ) ; SINGLE DocGen . HTML . graph ( sb , STRING0 , STRING1 , - DocGen . HTML . toJSArray ( new StringBuilder ( ) , Utils . sortAccording ( Arrays . copyOf ( _names , _names . length - NUMBER0 ) , sortOrder ) ) , - DocGen . HTML . toJSArray (...
Removed sorting of variables in graph
<nb> public class CollapsingToolbarLayout extends FrameLayout { requestLayout ( ) ; } - return insets ; + SINGLE + SINGLE + return insets . consumeSystemWindowInsets ( ) ; } @ override <nb> public class AppBarWithCollapsingToolbarTest extends AppBarLayoutBaseTest { final ImageView parallaxImageV...
Fix CollapsingToolbarLayout not consuming insets
<nb> public class Signaler nbytes = r . read ( rdummy ) ; rdummy . rewind ( ) ; SINGLE - } + } catch ( IOException e ) { throw new ZError . IOException ( e ) ; }
fixed checkstyle issue
<nb> public interface AnimatedImageFactory { COMMENT COMMENT COMMENT - public CloseableImage decodeGif ( + CloseableImage decodeGif ( final EncodedImage encodedImage , final ImageDecodeOptions options , final Bitmap . Config bitmapConfig ) ; <nb> public interface AnimatedImageFactory { COMMENT COM...
Removed unnecessary interface modifiers for AnimatedImageFactory
<nb> public class SSTableSplitter { @ override public CompactionAwareWriter getCompactionAwareWriter ( ColumnFamilyStore cfs , Set < SSTableReader > allSSTables , Set < SSTableReader > nonExpiredSSTables ) { - return new MaxSSTableSizeWriter ( cfs , sstables , nonExpiredSSTables , sstableSizeInMB * NUMBER0 * NU...
use long math for long results
<nb> public abstract class AbstractClientStream < IdT > extends AbstractStream < IdT > @ override protected final void deframeFailed ( Throwable cause ) { - log . log ( Level . WARNING , STRING0 , cause ) ; - cancel ( Status . CANCELLED ) ; + cancel ( Status . INTERNAL . withDescription ( STRING1 ) . withCa...
Fix deframing error handling
<nb> public class MethodReferenceResolver implements ResolveCache . PolyVariantContextR } if ( includeReturnConstraint && ! PsiType . VOID . equals ( interfaceMethodReturnType ) && interfaceMethodReturnType != null ) { - final PsiType returnType = method . isConstructor ( ) ? composeReturnType ( containingClass...
forgotten substitutor for return type
<nb> public class SimplifiedPathServiceImpl implements PathService { options . rctx . pathParsers = new PathParser [ ] { new Parser ( ) } ; } - options . setMaxTransfers ( Integer . MAX_VALUE ) ; + SINGLE options . setMaxWalkDistance ( Double . MAX_VALUE ) ; - SINGLE - options . setWalkBoardCost ( NUMBE...
remove hardcoded options can be accomplished w prototypeRoutingRequest
<nb> public class DriverConductor extends Agent subscription . correlationId ( ) ) ; subscriptions . remove ( subscription ) ; + subscriptionByCorrelationIdMap . remove ( subscription . correlationId ( ) ) ; if ( NUMBER0 == channelEndpoint . decRefToStream ( streamId ) ) {
Java Remove subscription for correlationId map on liveness check cleanup
<nb> public class MainActivity extends AppCompatActivity SINGLE SINGLE SINGLE - SINGLE + SINGLE SINGLE } return super . onOptionsItemSelected ( item ) ; <nb> public class HighLight { RectF rect = new RectF ( ViewUtils . getLocationInView ( parent , viewPosInfo . view ) ) ; - if ( ! rect . equa...
fixed w h changed bug
<nb> public class DbBatch implements Serializable { public DbBatch ( RowBatch rowBatch ) { this . rowBatch = rowBatch ; + this . fileBatch = new FileBatch ( ) ; + this . fileBatch . setIdentity ( rowBatch . getIdentity ( ) ) ; } public DbBatch ( RowBatch rowBatch , FileBatch fileBatch , File root ) {
fixed FileBatch NPE
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed typo in javadoc on HttpRequestHandler
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiUtil { if ( context instanceof PsiClass && ! isInDummyFile ( context ) ) { return ( PsiClass ) context ; } - else if ( context instanceof GroovyFileBase && context . isPhys...
resolve this references in script while completion
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public class MockFilterChain implements FilterCh...
Fix typo in MockFilterChain
<nb> public class FileSystemConnector extends AbstractFileSystemBasedRepositoryConnec } private String getLocalPath ( String path ) { - if ( STRING0 . equals ( getBasePath ( ) ) ) { + String basePath = getBasePath ( ) ; + if ( STRING0 . equals ( basePath ) ) { SINGLE return path ; - } else if ( path ....
Improved exception message
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public final class Strings { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Strings { COMMENT COMMEN...
Restore import for java util Formatter
<nb> public class CompilationErrorsTest extends TestCase { || ( diagnostic . getKind ( ) == Diagnostic . Kind . WARNING && diagnostic . getMessage ( null ) . contains ( STRING0 ) ) ) ; - if ( ignore ) { - System . out . println ( diagnostic ) ; - } else { + if ( ! ignore ) { diagnosticKinds . add ( diag...
Remove a println from CompilationErrorsTest
<nb> public class JodaTimeFormattingTests { public void setUp ( ) { JodaTimeFormattingConfigurer configurer = new JodaTimeFormattingConfigurer ( ) ; configurer . installJodaTimeFormatting ( conversionService ) ; - System . out . println ( conversionService ) ; binder = new DataBinder ( new JodaTimeBean ( ) ...
improved toString method
<nb> public abstract class EndlessRecyclerAdapter < VH extends RecyclerView . ViewHolder > public void setCallbacks ( LoaderCallbacks callbacks ) { this . callbacks = callbacks ; + loadNextItems ( ) ; } public void setLoadingOffset ( int loadingOffset ) {
Instantly triggering endless list loading
<nb> public abstract class AbstractTestDistributedQueries public void testShowSchemasFromOther ( ) throws Exception { - MaterializedResult result = computeActual ( format ( STRING0 ) ) ; + MaterializedResult result = computeActual ( STRING0 ) ; ImmutableSet < String > schemaNames = ImmutableSet . copyOf ( t...
Remove redundant format call
<nb> public class YamlFrontMatter { public static int [ ] getFrontMatterRange ( String code ) { - RegExp frontMatterReg = RegExp . compile ( STRING0 , STRING1 ) ; - MatchResult beginMatch = frontMatterReg . exec ( code ) ; + RegExp frontMatterBegin = RegExp . compile ( STRING0 , STRING1 ) ; + MatchResult ...
allow YAML front matter to end with in addition to
<nb> public interface HttpServerResponse extends WriteStream < Buffer > { HttpServerResponse headersEndHandler ( @ nullable Handler < Void > handler ) ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadoc for bodyEndHandler
<nb> public class AssetFile extends FileHandler { } public List < ObjectData > getObjects ( ) { - return objects ; + List < ObjectData > objectsCopy = new ArrayList < > ( ) ; + + for ( ObjectData object : objects ) { + SINGLE + SINGLE + if ( object . getTypeTree ( ) != null ) { + objectsCopy . add...
Skip objects with empty type tree in getObjects
<nb> class PyUnusedLocalInspectionVisitor extends PyInspectionVisitor { PyNamedParameter namedParameter = element instanceof PyNamedParameter ? ( PyNamedParameter ) element : ( PyNamedParameter ) element . getParent ( ) ; + name = namedParameter . getName ( ) ; if ( ( ( PyParameterList ) namedParameter . getP...
fix Oleg s latest fix
<nb> public class AnalyzedTokenReadings { setNoRealPOStag ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public final void removeReading ( final AnalyzedToken token ) { final ArrayList < AnalyzedToken > l = new ArrayList < AnalyzedToken > ( ) ; final AnalyzedToken tmpTok = n...
removeReading should not remove everything from AnalyzedTokenReading
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi if ( mStatistics != null ) { mStatistics . incrementBytesRead ( NUMBER0 ) ; } - return mBuffer [ mBufferPosition ++ ] ; + return BufferUtils . byteToInt ( mBuffer [ mBufferPosition ++ ] ) ; } LOG . error ( STRING0 ) ; ...
Fix other byte to int conversion
<nb> public abstract class Request < T > implements Comparable < Request < T > > { return DEFAULT_PARAMS_ENCODING ; } + COMMENT + COMMENT + COMMENT public String getBodyContentType ( ) { return STRING0 + getParamsEncoding ( ) ; } <nb> public abstract class Request < T > implements Comparable < Reque...
Clarify javadocs for getBody and getBodyContentType
<nb> public class ViewMailboxAction extends PortletAction { req . setAttribute ( STRING0 , messageId ) ; } - System . out . println ( STRING1 ) ; - return mapping . findForward ( STRING2 ) ; }
remove system out
<nb> public abstract class Resource implements ResourceFactory COMMENT public static URL toURL ( File file ) throws MalformedURLException { - return Resource . toURL ( file ) ; + return file . toURI ( ) . toURL ( ) ; } }
Added accidentally omitted file
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class Translation { @ notnull Config config ) throws TranslationException { try { - return doGenerateAst ( bindingConte...
run JsInliner after AST is built
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PokemonGo { bag . addItem ( new Item ( item . getInventoryItemData ( ) . getItem ( ) ) ) ; } + if ( item . getInventoryItemData ( ) . get...
Fixed candies add candies when pokemon transfered
<nb> public class BindAuthenticator extends AbstractLdapAuthenticator { SINGLE for ( String dn : getUserDns ( username ) ) { user = bindWithDn ( dn , username , password ) ; + + if ( user != null ) { + break ; + } } SINGLE
Added break to bindWithDnLoop when non null use is returned
<nb> public class FirstWizardPage { public static final String FIRST_PAGE_IDENTIFIER = STRING0 ; - public static final String USER_NAME_EXAMPLE = STRING1 ; + public static final String USER_NAME_EXAMPLE = STRING2 ; private JPanel firstTabPanel = new JPanel ( new BorderLayout ( ) ) ;
Fixed a typo on the double quotes
<nb> public class CodeGenerator { String className = psiClass . getName ( ) ; sb . append ( className ) . append ( STRING0 ) . append ( className ) . append ( STRING1 ) + . append ( STRING2 ) . append ( STRING3 ) . append ( className ) . append ( STRING4 ) . append ( STRING5 ) . append ( className ) . appen...
Add override annotations to generated code
<nb> public class OHttpResponse { if ( entry instanceof OIdentifiable ) { ORecord < ? > rec = ( ( OIdentifiable ) entry ) . getRecord ( ) ; - try { - objectJson = rec . getRecord ( ) . toJSON ( format ) ; + if ( rec != null ) + try { + objectJson = rec . toJSON ( format ) ; - buffer . append ( objec...
managed null entry in iterator
<nb> + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import static NAMESPACE ;
added license header
<nb> public class QSPanel extends ViewGroup { } ; private final AnimatorListenerAdapter mHideGridContentWhenDone = new AnimatorListenerAdapter ( ) { + public void onAnimationCancel ( Animator animation ) { + SINGLE + SINGLE + animation . removeListener ( this ) ; + } ; + @ override public void onA...
Fix blank QS Panel after double tap on profile icon
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application myDisposeInProgress = true ; Disposer . dispose ( this ) ; - if ( ! Disposer . isEmpty ( ) ) { + if ( isInternal ( ) && ! Disposer . isEmpty ( ) ) { try { Class . forName ( STRING0 ) . getDeclaredMethod ( STRING1 ) . inv...
generate snaphot only if internal
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU socketWrapper . write ( true , settings , NUMBER0 , settings . length ) ; socketWrapper . flush ( true ) ; } catch ( IOException ioe ) { - throw new IllegalStateException ( sm . getString ( STRING0 ) , ioe ) ; + throw new Pr...
Align error handling for being unable to send the preface with the other error handling in this method
<nb> public enum UnsafeUtils { } COMMENT - COMMENT + COMMENT COMMENT - public static boolean equals ( byte [ ] b1 , int o1 , byte [ ] b2 , int o2 , int len ) { + public static boolean equals ( byte [ ] b1 , int offset1 , byte [ ] b2 , int offset2 , int length ) { + int o1 = offset1 ; + int o2 = offs...
don t reassign method parameters
<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 ...
Fixed checkstyle failures
<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener { if ( ! addConnection ( ) ) { - throw new RuntimeException ( STRING0 ) ; + throw new RuntimeException ( STRING0 , lastConnectionFailure . getAndSet ( null ) ) ; } } }
Remove chatty logging of connection failures include last connection failure in SQL timeout exception
<nb> class LwjglGL10 implements GL10 { textures [ i ] = GL11 . glGenTextures ( ) ; } - public final void glGetIntegerv ( int pname , int [ ] params , int offset ) { - GL11 . glGetInteger ( pname , toBuffer ( params , offset ) ) ; SINGLE + IntBuffer getBuffer = BufferUtils . createIntBuffer ( NUMBER0 ) ; +...
fixed LwjglGL10 glGetIntegerv
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; @ threadsafe public class FinalizerService <nb> public class FinalizerSe...
Use single thread executor for FinalizerService
<nb> public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt SecurityContextHolder . clearContext ( ) ; if ( logger . isDebugEnabled ( ) ) { - logger . debug ( STRING0 + failed . toString ( ) ) ; + logger . debug ( STRING0 + failed . toString ( ) , failed ) ; logger . debug ( STRING...
Include AuthenticationException in logs
<nb> public class TypedHandler implements TypedActionHandler { SINGLE if ( ! JspxCompletionData . isJavaContext ( elementAt ) && - elementAt . getText ( ) . equals ( STRING0 ) + elementAt . getText ( ) . equals ( STRING1 ) ) { - PsiElement prevSibling = elementAt . getPrevSibling ( ) ; - if ( prevSiblin...
fixed regression due to xml lexer fix with
<nb> public class ParserConstraint implements Serializable { this . end = end ; this . state = state ; } + + @ override + public String toString ( ) { + return STRING0 + start + STRING1 + end + STRING2 + state + STRING3 ; + } }
Add a toString to ParserConstraint
<nb> public class AppSettingsFragment extends PreferenceFragment implements OnPrefere Resources res = getResources ( ) ; Configuration conf = res . getConfiguration ( ) ; - Locale currentLocale = conf . locale != null ? conf . locale : LanguageUtils . getCurrentDeviceLanguage ( WordPress . getContext ( ) ) ; ...
Checking language equality as recommended by documentation
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - class FindFluentImpl < T > implements FindFluent < T > { + final class FindFluentImpl < T > implements FindFluent < T > { private final MongoNamespace namespace ; private final MongoCollectionOptions options ; private f...
Made FindFluentImpl final
<nb> public class OStorageLocal extends OStorageEmbedded { clusters [ iClusterId ] = null ; SINGLE - configuration . clusters . set ( iClusterId , null ) ; - configuration . update ( ) ; + if ( iClusterId < configuration . clusters . size ( ) ) { + configuration . clusters . set ( iClusterId , null ) ; ...
Fixed bug in storage configuration reported by Anton on create drop cluster
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; public class AdapterViewBehavior { public static void shouldActAsAdapte...
Fix build pause loopers for tests that expect paused state
<nb> import static NAMESPACE ; public abstract class MongoGateway { private final ServerAddress address ; private final BufferPool < ByteBuffer > pool ; - private CachingAuthenticator authenticator ; + private final CachingAuthenticator authenticator ; + private boolean authenticating = false ; public s...
Avoiding infinite recursion when authenticating
<nb> public enum RealTimeState { COMMENT COMMENT COMMENT - UDPATED , + UPDATED , COMMENT COMMENT <nb> public class TripTimes implements Serializable , Comparable < TripTimes > , Cloneable } SINGLE - realTimeState = RealTimeState . UDPATED ; + realTimeState = RealTimeState . UPDATED ; } }...
Fix UDPATED typo