diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE class CatalogExpander extends NetworkItemsLoader { private final Authenticator myAuthenticator ; + private final boolean myAuthenticationRequested ; private final boolean myResumeNotLoad ; CatalogExpander ( NetworkCatalogTree tree , Authenticator authenticator , boolean resumeNotLoad...
do not show Empty catalog message if authentication is required
<nb> import NAMESPACE ; COMMENT public class NettyConnectionsPool implements ConnectionsPool < String , Channel > { - private final static Logger log = LoggerFactory . getLogger ( NettyAsyncHttpProvider . class ) ; + private final static Logger log = LoggerFactory . getLogger ( NettyConnectionsPool . class ) ...
Fix trival typo
<nb> public class BasicChaosMonkey extends ChaosMonkey { context ( ) . recorder ( ) . recordEvent ( evt ) ; return evt ; } - + COMMENT @ override public int getPreviousTerminationCount ( InstanceGroup group , Date after ) { <nb> public class BasicChaosMonkey extends ChaosMonkey { return null ; } ...
Make terminateInstance protected to support overriding by the subclass es
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Removed accidental import
<nb> public class GoTestRunningState extends GoRunningState { consoleView . addMessageFilter ( new GoTestConsoleFilter ( myModule , myConfiguration . getWorkingDirectory ( ) ) ) ; DefaultExecutionResult executionResult = new DefaultExecutionResult ( consoleView , processHandler ) ; - executionResult . setRestar...
get rid of deprecate API
<nb> public class LagartoDOMBuilder { return parse ( lagarto ) ; } + COMMENT + COMMENT + COMMENT protected Document parse ( LagartoParser lagarto ) { - DOMBuilderTagVisitor domBuilderTagVisitor = new DOMBuilderTagVisitor ( this ) ; + DOMBuilderTagVisitor domBuilderTagVisitor = createDOMDomBuilderTagVi...
Added feature to create custom DOMBuilderTagVisitor
<nb> public abstract class Compiler { if ( jspProperty . getIncludeCoda ( ) != null ) { pageInfo . setIncludeCoda ( jspProperty . getIncludeCoda ( ) ) ; } + if ( jspProperty . isDefferedSyntaxAllowedAsLitteral ( ) != null ) { + pageInfo . setDeferredSyntaxAllowedAsLiteral ( JspUtil . booleanValue ( jspPropert...
Pass the two new values to the PageInfo instance
<nb> public class Upload extends HTMLOnlyRequest { + STRING0 ; } + SINGLE + SINGLE + SINGLE + SINGLE public static class PostFile extends JSONOnlyRequest { @ override protected Response serve ( ) { return Response . done ( new JsonObject ( ) ) ;
Add a comment about how to upload a file from curl
<nb> public class AntlrSpec implements Serializable { return outputDirectory ; } - public void setOutputDirectory ( File outputDirectory ) { - this . outputDirectory = outputDirectory ; - } - public boolean isTrace ( ) { return trace ; }
removed unused outputdirectory setter method in AntlrSpec
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiFormatUtil extends PsiFormatUtilBase { else { if ( ( options & SHOW_NAME ) != NUMBER0 ) { String name = variable . getName ( ) ; - if ( name != null ) { + if ( St...
if a variable name is empty don t put a space before it in pretty printing
<nb> public class AddMavenDependencyQuickFixTest extends MavenDomWithIndicesTestCase intentionAction . invoke ( myProject , myFixture . getEditor ( ) , myFixture . getFile ( ) ) ; String pomText = PsiManager . getInstance ( myProject ) . findFile ( myProjectPom ) . getText ( ) ; - assert pomText . matches ( -...
assert replace by assertTrue in test
<nb> - package NAMESPACE ; + package NAMESPACE ; COMMENT COMMENT
Moving pancake sorting to sort package
<nb> public class ItemDescriptionFragment extends SherlockFragment { private static final String ARG_FEED_ID = STRING0 ; private static final String ARG_FEEDITEM_ID = STRING1 ; + private static final String WEBVIEW_STYLE = STRING2 ; + private WebView webvDescription ; private FeedItem item ; <nb> publ...
Added stylesheet for itemdescription webview
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UIBox extends CoreWidget { @ override public Iterator < UIWi...
UIBox s content now gets update calls
<nb> public class FlexBase64 { private int copyOverflow ( byte [ ] b , int off , int len , byte [ ] overflow , int pos , int limit ) { limit -= pos ; len = limit <= len ? limit : len ; - for ( int i = NUMBER0 ; i < len ; i ++ ) { - b [ off + i ] = overflow [ pos + i ] ; - } + System . arraycopy ( overflow...
replaces manual array copy with System arraycopy
<nb> public class TaskBaseResource { case LESS_THAN_OR_EQUALS : taskQuery . taskVariableValueLessThanOrEqual ( variable . getName ( ) , actualValue ) ; break ; - + + case LIKE_IGNORE_CASE : + if ( actualValue instanceof String ) { + taskQuery . taskVariableValueLikeIgnoreCase ( variable . getName ( ) , ...
implement likeIgnoreCase variable query operation in REST api
<nb> public class AtmosphereHandler extends AtmosphereGwtHandler { } @ override - public void doPost ( HttpServletRequest postRequest , HttpServletResponse postResponse , List < Serializable > messages , GwtAtmosphereResource cometResource ) { + public void doPost ( HttpServletRequest postRequest , HttpServle...
Fix the build
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
add license info
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> import NAMESPACE ; C...
Add heron level config to storm config which could avoid the mix usage of two configs
<nb> public class Hits implements Statistics , LongTask { System . arraycopy ( temp_authority , NUMBER0 , authorityValues , NUMBER0 , N ) ; System . arraycopy ( temp_hubs , NUMBER0 , hubValues , NUMBER0 , N ) ; - SINGLE - SINGLE + temp_authority = new double [ N ] ; + temp_hubs = new double [ N ] ; if...
Remove hits for the moment until fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class WebValve { URLClassLoader child = new URLClassLoader ( new URL [ ] { new URL ( STRING0 + filename ) } , parent ) ; Valve valve = ( Valve ) child . loadClass ( classname ) . newInsta...
Remove a forgotten test code
<nb> import NAMESPACE ; import NAMESPACE ; public class DefaultTaskOutputs extends FilePropertyContainer < DefaultTaskOutputs . PropertySpec > implements TaskOutputsInternal { - private static AndSpec < TaskInternal > EMPTY_AND_SPEC = new AndSpec < TaskInternal > ( ) ; + private static final AndSpec < TaskInt...
Thank you Checkstyle
<nb> public class LocalTachyonClusterMultiMaster { try { mCuratorServer = new TestingServer ( ) ; + LOG . info ( STRING0 + mCuratorServer . getConnectString ( ) ) ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } <nb> public class LocalTachyonClusterMultiMaster { for ( int k = NUMBER0...
Add debug logging
<nb> class ScrollbarHelper { final int maxPosition = Math . max ( lm . getPosition ( startChild ) , lm . getPosition ( endChild ) ) ; final int itemsBefore = reverseLayout ? Math . max ( NUMBER0 , state . getItemCount ( ) - maxPosition - NUMBER1 ) - : Math . max ( NUMBER0 , minPosition - NUMBER1 ) ; + : Math ...
DO NOT MERGE Fix calculation for items before the start position
<nb> public class BeanDeserializer { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fix a doc typo
<nb> public class DozerTypeConverterLoader implements CamelContextAware { BeanContainer . getInstance ( ) . setClassLoader ( adapter ) ; Map < String , DozerBeanMapper > mappers = lookupDozerBeanMappers ( ) ; - if ( mapper != null ) { + SINGLE + if ( mapper != null && ! mappers . containsValue ( mapper ) ) ...
Dont add existing bean mapper if we already have it
<nb> public enum DeserializationFeature implements ConfigFeature COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT FAIL_ON_MISSING_CREATOR_PROPERTIES ( false ) ,
Fix a javadoc typo
<nb> public class FileStructure { public enum Domain { ISSUES ( STRING0 , Domain . PB ) , - ISSUES_ON_DELETED ( STRING1 , Domain . PB ) , COMPONENT ( STRING2 , Domain . PB ) , MEASURES ( STRING3 , Domain . PB ) , DUPLICATIONS ( STRING4 , Domain . PB ) , <nb> public class FileStructure { COVERAGES ( ST...
Remove unused constants in FileStructure
<nb> public class MultiTouchSupport { if ( pointCount < NUMBER0 ) { if ( inZoomMode ) { listener . onZoomOrRotationEnded ( zoomRelative , angleRelative ) ; - if ( pointCount == NUMBER1 ) { - inZoomMode = false ; - } + inZoomMode = false ; } return false ; } <nb> public class MultiTouchSupport { ...
Let only the second last finger trigger onZoomOrRotationEnded
<nb> public abstract class AbstractAuthorizeTag { return target ; } - @ suppresswarnings ( STRING0 ) + @ suppresswarnings ( { STRING0 , STRING1 } ) private SecurityExpressionHandler < FilterInvocation > getExpressionHandler ( ) throws IOException { ApplicationContext appContext = WebApplicationContextUtil...
Suppress warnings in AbstractAuthorizeTag and AuthorizeTagCustomGrantedAuthorityTests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + COMMENT COMMENT COMMENT
add missing import
<nb> public class SnackBar { } COMMENT + COMMENT + COMMENT + COMMENT + public void hide ( ) { + mSnackContainer . hide ( ) ; + clear ( ) ; + } + + + COMMENT COMMENT COMMENT public void onRestoreInstanceState ( Bundle state ) {
Added SnackBar hide
<nb> public class PGraphicsAndroid2D extends PGraphics { public void rotate ( float angle ) { - canvas . rotate ( angle ) ; + canvas . rotate ( angle * RAD_TO_DEG ) ; }
canvas rotate expects degrees
<nb> public class Java5 implements VMPlugin { ListExpression le = ( ListExpression ) exp ; int bitmap = NUMBER0 ; for ( Expression e : le . getExpressions ( ) ) { + if ( ! ( e instanceof PropertyExpression ) ) return ; PropertyExpression element = ( PropertyExpression ) e ; String name = element . getProper...
CLONE Incorrect parameter for annotations throws compilation exception with obfuscated message
<nb> import NAMESPACE ; public class TestCommand implements BlazeCommand { private AnsiTerminalPrinter printer ; + COMMENT + SINGLE + protected String commandName ( ) { + return STRING0 ; + } + @ override public void editOptions ( BlazeRuntime runtime , OptionsParser optionsParser ) throws Abrup...
Supply the correct command name to ProjectFileSupport
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT + COMMENT COMMENT public class UuidFactoryFast implements UuidFactory { private static UuidFactoryFast instance = new UuidFactoryFast ( ) ; private static final char [ ] HEX_ARRAY = STRING0 . toCharArray ( ) ; - ...
Improve javadoc and randomness of fast uid generation
<nb> public final class AlluxioMasterRestServiceHandler { public static final String SERVICE_PREFIX = STRING0 ; public static final String GET_RPC_ADDRESS = STRING1 ; public static final String GET_CONFIGURATION = STRING2 ; - public static final String GET_DEBUG = STRING3 ; public static final String GET_CAPA...
Remove redundant endpoint debug which can be retrieved via configuration
<nb> public class ContactListPanel extends JScrollPane tabbedChatWindow . highlightTab ( metaContact ) ; } } + Constants . getDefaultAudio ( ) . play ( ) ; } COMMENT <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ...
Play sound when a new message is received
<nb> public class Tsurgeon { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a couple documentation bugs
<nb> public class SQLiteAssetHelper extends SQLiteOpenHelper { COMMENT @ deprecated public void setForcedUpgradeVersion ( int version ) { - mForcedUpgradeVersion = version ; + setForcedUpgrade ( version ) ; } COMMENT
add new forced upgrade API deprecate setForcedUpgradeVersion
<nb> public abstract class BaseEntity implements IEntity { public void setVisible ( final boolean pVisible ) { this . mVisible = pVisible ; } + + public boolean isIgnoreUpdate ( ) { + return this . mIgnoreUpdate ; + } public void setIgnoreUpdate ( final boolean pIgnoreUpdate ) { this . mIgnoreUpdate...
Added method to check if BaseEntity isIgnoreUpdate
<nb> public class ScorecardModel { SINGLE String cname = xml2jname ( _scm . _name ) ; if ( CLASS_NAMES . containsKey ( cname ) ) { - throw H2O . unimpl ( ) ; - SINGLE - SINGLE - SINGLE + int i = NUMBER0 ; + while ( CLASS_NAMES . containsKey ( cname + i ) ) i ++ ; + cname = cname + i ; } + CLASS_...
Rename dup classnames
<nb> import NAMESPACE ; public class Utils { - public static int PxToDp ( final Context context , final float px ) { + public static int PxToDp ( Context context , float px ) { return Math . round ( px / context . getResources ( ) . getDisplayMetrics ( ) . density ) ; } - public static int DptoPx ( fi...
remove final from Utils methods
<nb> COMMENT COMMENT COMMENT - package NAMESPACE ; - - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MBeanUtils { } - COMMENT - COMMENT - COMMENT - @ deprecated - static final Hashtable < String , int [ ] > seq = new Hashtable < String , int [ ] > ( )...
Remove deprecated code
<nb> import NAMESPACE ; public class TomcatEmbeddedServletContainerFactory extends AbstractEmbeddedServletContainerFactory implements ResourceLoaderAware { - private static final String DEFAULT_PROTOCOL = STRING0 ; + public static final String DEFAULT_PROTOCOL = STRING0 ; private File baseDirectory ;
Make DEFAULT_PROTOCOL public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractTestHiveClient doCreateTable ( ) ; } finally { - metastoreClient . dropTable ( temporaryCreateTable . ...
Don t swallow exception when dropping table
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PostsActivity extends ActionBarActivity } } - @ override - protected void onResume ( ) { - super . onResume ( ) ; ...
remove pre masterbar code
<nb> public class AtomicArray < T > COMMENT COMMENT COMMENT - public Object [ ] getObjArray ( ) + public Object [ ] array ( ) { return arrayRef . get ( ) ; }
changed name of method to avoid confusion
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class FileConsumerAbsoluteRootPathDefaultMoveTest extends ContextTestSupp } public void tes...
Preparing for release checkstyle fixes
<nb> public class WSDecoder { payloadRead = NUMBER0 ; if ( opcode > NUMBER0 ) fragmentedOpCode = opcode ; - opcode = OPCODE_CONT ; + opcode = - NUMBER1 ; } } break ;
Fixing opcode reset during PAYLOAD
<nb> public abstract class OAbstractPaginatedStorage extends OStorageAbstract throw new OStorageException ( STRING0 + name + STRING1 + url ) ; configuration . load ( iProperties ) ; + + final String cs = configuration . getConflictStrategy ( ) ; + if ( cs != null ) { + SINGLE + setConflictStrategy ( Ori...
fixed issue about loading of saved record conflict strategy
<nb> public class MainActivity extends AppCompatActivity implements View . OnClickListe ViewPager viewpager = ( ViewPager ) findViewById ( R . id . viewpager ) ; viewpager . setAdapter ( new MainPagerAdapter ( this , getSupportFragmentManager ( ) ) ) ; - SINGLE - TabLayout tabLayout = ( TabLayout ) findViewBy...
Fix issues with TabLayout tab indicator stuttering incorrect view pager item being selected when pressing a tab
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface SortedMultiset < E > extends SortedMultisetBridge < E > , SortedIterab COMMENT COM...
Add iteration order discussion to SortedMultiset doc
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class SimpleDependencyInfo implements DependencyInfo { return Objects . hash ( provides , requires , srcPathRelativeToClosure , pathOfDefiningFile , loadFlags ) ; } + + public static final Sim...
Fix bug in TranspilingClosureBundler when the first file is a module
<nb> public interface Kernel32 extends StdCallLibrary { boolean DeviceIoControl ( HANDLE hDevice , int dwIoControlCode , Pointer lpInBuffer , int nInBufferSize , Pointer lpOutBuffer , int nOutBufferSize , IntByReference lpBytesReturned , Pointer lpOverlapped ) ; - COMMENT - COMMENT - COMMENT - COMMENT -...
Fix JavaDoc warning
<nb> public class RangeSliceCommand implements IReadCommand this ( keyspace , column_parent . getColumn_family ( ) , column_parent . super_column , predicate , range , row_filter , maxResults , false , false ) ; } - public RangeSliceCommand ( String keyspace , ColumnParent column_parent , IFilter predicate , Ab...
remove unused ctors oops missed first commit with one
<nb> public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo List < String > colHeaders = new ArrayList < > ( ) ; List < String > colTypes = new ArrayList < > ( ) ; List < String > colFormat = new ArrayList < > ( ) ; - colHeaders . add ( STRING0 ) ; colTypes . add ( STRING1 ) ; ...
Fix an incorrect model summary label
<nb> public final class ServiceUtils { ServiceUtils . sTraktServiceManagerInstance = new Trakt ( ) ; ServiceUtils . sTraktServiceManagerInstance . setApiKey ( context . getResources ( ) . getString ( R . string . trakt_apikey ) ) ; - SINGLE - SINGLE } return ServiceUtils . sTraktServiceManagerInstance ;
Remove deprecated code
<nb> public class WebView extends AbsoluteLayout SINGLE SINGLE SINGLE - nativeRecordButtons ( hasFocus ( ) && hasWindowFocus ( ) , - mTouchMode == TOUCH_SHORTPRESS_START_MODE - || mTrackballDown || mGotCenterDown , false ) ; + if ( mDrawCursorRing && drawRings ) { + SINGLE + nativeRecordButtons ( hasF...
Tap highlight fix small perf increase
<nb> extends CharSequence public int getSpanFlags ( Object tag ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public int nextSpanTransition ( int start , int limit , Class type ) ; }
Fix documentation of nextSpanTransition off by one
<nb> public class ModelMetrics extends Keyed < ModelMetrics > { @ override public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING0 + this . getClass ( ) . getSimpleName ( ) . substring ( NUMBER0 ) + STRING1 ) ; - sb . append ( STRING2 + _description == null ? STRING3 : _des...
Fix model metrics printout
<nb> public class ResolveImportUtil { PsiFile footholdFile = foothold . getContainingFile ( ) ; if ( footholdFile == null || ! footholdFile . isValid ( ) ) return Collections . emptyList ( ) ; - if ( moduleQualifiedName . getComponentCount ( ) < NUMBER0 ) return Collections . emptyList ( ) ; - PythonPathCac...
allow resolveModulesInRoots for empty qName
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public abstract class SquidDatabase {
Add a javadoc warning about implementing custom methods with locking
<nb> public class AtmosphereClient { } + public boolean isWebSocketsEnabled ( ) { + return webSocketsEnabled ; + } + + public void setWebSocketsEnabled ( boolean webSocketsEnabled ) { + this . webSocketsEnabled = webSocketsEnabled ; + } + + public String getUrl ( ) { return url ; }
GWT Improve client API
<nb> public class PApplet extends Activity implements PConstants , Runnable { public void onDestroy ( ) { - stop ( ) ; + SINGLE + dispose ( ) ; if ( PApplet . DEBUG ) { System . out . println ( STRING0 ) ; }
that should be destroy not stop
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLAbstract imple if ( result != null ) for ( OIdentifiable r : result ) { - addResult ( createIndexEntryAsDocument ( keyValue , r ) ) ; + addResult ( createIndexEntryAsDocument ( keyValue , r . getIdentity ( ) ) ) ; } } else { <nb> p...
Fixed issue on query against indexes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public interface ConfiguredBundle < T extends Configuration > { + public interface ConfiguredBundle < T > { COMMENT COMMENT COMMENT <nb> public interface ConfiguredBundle < T extends Configuration > { COMMENT COMMENT COMMENT - void initialize (...
Revert Use Type parameter for configuration in initialize
<nb> public class SlidingLayer extends FrameLayout { public static final int STICK_TO_BOTTOM = - NUMBER0 ; private static final int MAX_SCROLLING_DURATION = NUMBER1 ; SINGLE - private static final int MIN_DISTANCE_FOR_FLING = NUMBER2 ; SINGLE + private static final int MIN_DISTANCE_FOR_FLING = NUMBER3 ; SINGL...
Made fling more sensible
<nb> public class JavaCompletionUtil { hasParams = false ; } + PsiDocumentManager . getInstance ( context . getProject ( ) ) . commitDocument ( context . getDocument ( ) ) ; + final CodeStyleSettings styleSettings = CodeStyleSettingsManager . getSettings ( context . getProject ( ) ) ; ParenthesesInsertHan...
don t commit document in the completion framework give the chance to see the old PSI
<nb> public class AsmClassGenerator extends ClassGenerator { } catch ( GroovyRuntimeException e ) { e . setModule ( classNode . getModule ( ) ) ; throw e ; + } catch ( NullPointerException npe ) { + throw new GroovyRuntimeException ( STRING0 + sourceFile , npe ) ; } } <nb> public class AsmClassGenerat...
remove unneeded boxing action and improve error reporting a little
<nb> public final class CallOptions { COMMENT COMMENT COMMENT - @ experimentalapi ( STRING0 ) public CallOptions withDeadline ( @ nullable Deadline deadline ) { CallOptions newOptions = new CallOptions ( this ) ; newOptions . deadline = deadline ; <nb> public final class CallOptions { COMMENT COMMEN...
Promote Deadline API to stable
<nb> import NAMESPACE ; COMMENT public abstract class Loader { - final LruCache < ClassLoader , LruCache < String , Class < ? > > > caches = + private final LruCache < ClassLoader , LruCache < String , Class < ? > > > caches = new LruCache < ClassLoader , LruCache < String , Class < ? > > > ( Integer . MAX_...
Make cache private no access needed for testing
<nb> public final class Region3i implements Iterable < Vector3i > { COMMENT public Vector3f center ( ) { Vector3f result = min . toVector3f ( ) ; - result . add ( size . toVector3f ( ) ) ; - result . scale ( FLOAT0 ) ; + Vector3f halfSize = size . toVector3f ( ) ; + halfSize . scale ( FLOAT0 ) ; + resul...
Fixing hilarious bug in the Region3i
<nb> public class PlayerListener implements Listener { } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT + @ deprecated public void onPlayerCommand ( PlayerChatEvent event ) { }
Deprecated PlayerListener onPlayerCommand PlayerChatEvent event
<nb> public class SSLCertsViewActivity extends WebViewActivity { mWebView . loadDataWithBaseURL ( null , sb . toString ( ) , STRING0 , STRING1 , null ) ; } } - - protected void refreshMenuDrawer ( ) { - SINGLE - } - } + }
remove unused code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused imports
<nb> public class TestJetty6WebServer { ImpermanentGraphDatabase db = new ImpermanentGraphDatabase ( ) { @ override - public Node getNodeById ( long id ) - { - try - { - Thread . sleep ( NUMBER0 ) ; - } catch ( InterruptedException e ) - { - throw new RuntimeException ( e ) ; - } - return supe...
Remove useless lines copied from different test
<nb> Object run ( Callable fn ) throws Exception { } SINGLE - for ( Ref ref : sets ) + for ( Map . Entry < Ref , Object > e : vals . entrySet ( ) ) { - ref . validate ( ref . getValidator ( ) , ref . get ( ) ) ; + Ref ref = e . getKey ( ) ; + ref . validate ( ref . getValidator ( ) , e . getValue ( ) ...
validate commutes too
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EchoServlet extends WebSocketServlet public void configure ( WebSocketServletFactory factory ) { SINGLE - factory . getExtensionFactory ( ) . register ( STRING0 , DeflateFrame...
Removing x webkit deflate frame from example
<nb> public abstract class Constants public void execute ( ByteBuffer rowKey , ColumnFamily cf , Composite prefix , UpdateParameters params ) throws InvalidRequestException { - CellName cname = cf . getComparator ( ) . create ( prefix , column ) ; ByteBuffer value = t . bindAndGet ( params . options ) ; if ...
push down allocations to where they are needed
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class PlaceholderConfigurerSupport extends PropertyResourceConfi visitor . visitBeanDefinition ( bd ) ; } catch ( Exception ex ) { - throw new BeanDefinitionStoreException ( bd . getResourceDescription ( ) , curName , ex...
Preserve visitBeanDefinition stacktrace in BeanDefinitionStoreException
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - SINGLE - @ ignore ( STRING0 ) public class JournalIntegrationTest { private LocalTachyonCluster mLocalTachyonCluster = null ; private TachyonFileSystem mTfs = null ; <nb> public class JournalShutdownIntegrationTest { return cluster ; } - SINGLE...
SMALLFIX Unignore fixed tests
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adds a missing header
<nb> public class ConnectivityService extends IConnectivityManager . Stub info . setDetailedState ( DetailedState . CONNECTED , null , info . getExtraInfo ( ) ) ; sendConnectedBroadcast ( info ) ; } else { - info . setDetailedState ( DetailedState . DISCONNECTED , null , info . getExtraInfo ( ) ) ; + info . s...
Fix the empty reason field in connectivity change intent
<nb> public class NameBinder { b = s . put ( name . getId ( ) , name , rvalue , kind , tag ) ; } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - Type nameType = b . getType ( ) ; if ( nameType . isUnknownType ( ) ) { nameType . getTable ( ) . setPath ( ...
delete useless comments
<nb> public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter protected ModelAndView handleInternal ( HttpServletRequest request , HttpServletResponse response , HandlerMethod handlerMethod ) throws Exception { - ModelAndView mav = null ; + ModelAndView mav ; checkRequest ( request ) ;...
RequestMappingHandlerAdapter properly invokes handler method in case of no session as well
<nb> public class MetaContactImpl { synchronized ( parentGroupModLock ) { - this . totalStatus = NUMBER0 ; - SINGLE SINGLE if ( parentGroup != null ) <nb> public class MetaContactImpl parentGroup . lightRemoveMetaContact ( this ) ; } + this . totalStatus = NUMBER0 ; + Iterator protoContact...
don t touch total status before removing contacts
<nb> public class NotificationHeaderView extends LinearLayout { int overFlow = totalWidth - givenWidth ; SINGLE final int appWidth = mAppName . getMeasuredWidth ( ) ; - if ( appWidth > mHeaderMinWidth ) { + if ( mAppName . getVisibility ( ) != GONE && appWidth > mHeaderMinWidth ) { int newSize = appWidth - ...
Fixed a small measuring but with the notification header
<nb> public class GenericLocation implements Cloneable { COMMENT private Double heading ; - SINGLE + SINGLE + SINGLE private static final String _doublePattern = STRING0 ; + SINGLE + SINGLE private static final Pattern _latLonPattern = Pattern . compile ( STRING1 + _doublePattern + STRING2 + _do...
add comment explaining regexp change
<nb> public class SetupBlog { public void setCurrentDomainSslCertificatesForcedTrusted ( boolean trusted ) { if ( trusted && ! TextUtils . isEmpty ( mSelfHostedURL ) ) { try { - URI uri = URI . create ( mSelfHostedURL ) ; + URI uri ; + if ( ! ( mSelfHostedURL . toLowerCase ( ) . startsWith ( STRING0 ) ) && ...
Add the protocol http to the user inserted URL if it s missing right before adding it to trusted domain
<nb> final class Settings { SINGLE SINGLE SINGLE + SINGLE SINGLE sb . setLength ( NUMBER0 ) ; sb . append ( ai . packageName ) ;
Note libselinux dependency on packages list format changes
<nb> public class BSONBinaryWriterTest { @ test public void testWriteObjectId ( ) { - final ObjectId id = ObjectId . massageToObjectId ( STRING0 ) ; + final ObjectId id = new ObjectId ( STRING0 ) ; writer . writeStartDocument ( ) ;
Using ObjectId constructor instead of massageToObjectId factory method
<nb> public class HttpRequest { private static HostnameVerifier TRUSTED_VERIFIER ; private static String getValidCharset ( final String charset ) { - if ( charset != null ) + if ( charset != null && charset . length ( ) > NUMBER0 ) return charset ; else return CHARSET_UTF8 ; <nb> public class HttpRequ...
Treat empty and null charsets the same way
<nb> public class OTransactionRecordProxy implements ORecordInternal < byte [ ] > { return false ; } - public void pin ( ) { + public OTransactionRecordProxy pin ( ) { throw new UnsupportedOperationException ( ) ; } - public void setDirty ( ) { + public OTransactionRecordProxy setDirty ( ) { throw...
Changed void method for call in chain
<nb> public class TypeDeclarationGenerator extends TypeGenerator { int ordinal = NUMBER0 ; for ( EnumConstantDeclaration constant : constants ) { printIndent ( ) ; - printf ( STRING0 , nativeName , constant . getName ( ) . getIdentifier ( ) , ordinal ++ ) ; + printf ( STRING0 , + nativeName , nameTable . ge...
Fixed translation of enum constants named init
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT public class PyPackageRequirementsInspectionTest extends PyTestCase { + pu...
Env tests tag requirements for requirements tests
<nb> import NAMESPACE ; COMMENT public final class MatrixToImageWriter { - private static final int BLACK = NUMBER0 ; - private static final int WHITE = NUMBER1 ; + private static final int BLACK = NUMBER2 ; + private static final int WHITE = NUMBER3 ; private MatrixToImageWriter ( ) { }
was writing transparent pixels
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GoPathSearchScope extends GlobalSearchScope { return false ; } - if ( myRoots . contains ( packageDirectory ) ) { + if ( ApplicationMan...
Include goroots in scope in tests only
<nb> package NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class SoLoaderShim { COMMENT COMMENT public static void setHandler ( Handler handler ) { - Preconditions . checkNotNull ( handler ) ; + if ( handler == null ) { + throw new NullPointerException ( STRING0 ) ...
Eliminate all external dependencies from SoLoaderShim
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StreetEdge extends Edge implements Cloneable { this . compactGeometry = CompactLineString . compactLineString ( fromv . getLo...
Add shareData method to StreetEdge