diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class Graph implements Serializable { TDoubleList longitudes = new TDoubleLinkedList ( ) ; Median median = new Median ( ) ; - for ( Vertex v : getVertices ( ) ) { - if ( v instanceof TransitStop ) { + getVertices ( ) . stream ( ) + . filter ( v - > v instanceof TransitStop ) + . forEach ( v ...
Made transitCenter calculation with streams
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <...
Fix the package name of Android Switch
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StaticInvocationWriter extends InvocationWriter { } if ( ! implicitThis && ! isThisOrSuper && StaticTypeCheckingSupport . implementsInterfaceOrIsSubclassOf ( node , targ...
Avoid potential NPE in error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMES...
Fixed merge weirdness
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPAC...
Fix compilation errors related to bad imports
<nb> public class BasicCalendar implements MonkeyCalendar { public boolean isMonkeyTime ( Monkey monkey ) { if ( cfg != null && cfg . getStr ( STRING0 ) != null ) { boolean monkeyTime = cfg . getBool ( STRING0 ) ; - String msg = monkeyTime ? STRING1 : STRING2 ; - LOGGER . debug ( STRING3 + monkeyTime + STRING...
isMonkeyTime false should execute normal MonkeyCalendar logic
<nb> public class PythonInPlaceBinary extends PythonBinary implements HasRuntimeDeps SINGLE @ addtorulekey private final Supplier < String > script ; - @ addtorulekey private final SymlinkTree linkTree ; @ addtorulekey private final PythonPackageComponents components ;
don t add symlink tree to rule key
<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements } private void flush ( ByteBuf out ) { - while ( out . isWritable ( ) ) { + while ( out . maxCapacity ( ) != out . writerIndex ( ) ) { ByteBuf data = exchangeBuf . peek ( ) ; if ( data == null ) { break ;
ByteBridge flush does not flush anything if the target buffer is not writable but expandable
<nb> public class Locker this ( SPIN ) ; } - protected Locker ( boolean spin ) + public Locker ( boolean spin ) { this . _spin = spin ; }
allow Locker configuration
<nb> public class TachyonFile implements Comparable < TachyonFile > { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - private TachyonByteBuffer readLocalByteBuffer ( int blockIndex , long offset , long len ) - throws IOExcepti...
SMALLFIX Remove unused private methods
<nb> public class WebRequestTraceFilter extends OncePerRequestFilter implements Order private boolean dumpRequests = false ; - private int order = Integer . MAX_VALUE ; + SINGLE + SINGLE + private int order = Ordered . LOWEST_PRECEDENCE - NUMBER0 ; private final TraceRepository traceRepository ;
Add some space between the trace filter and the end of the chain
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class PyEditingTest extends PyTestCase { } public void testEnterStubInDocstring ( ) { SINGLE - doTestEnter ( STRING0 , STRING1 + -...
fixed editing test
<nb> public abstract class ListCellRendererWrapper < T > implements ListCellRenderer { public final void setToolTipText ( final String toolTipText ) { myToolTipText = toolTipText ; } + + @ nullable + public Icon getIcon ( final Object value ) { + return null ; + } }
Fix ugly UI in Project view on GTK L F
<nb> public final class MessagingService implements MessagingServiceMBean } } ; StorageService . scheduledTasks . scheduleWithFixedDelay ( logDropped , LOG_DROPPED_INTERVAL_IN_MS , LOG_DROPPED_INTERVAL_IN_MS , TimeUnit . MILLISECONDS ) ; - onfi + Function < Pair < String , Pair < InetAddress , IMessageCallb...
revert incomplete code better
<nb> package NAMESPACE ; public class SubsequenceCounter { + private static char [ ] seq = null ; private static char [ ] subseq = null ; private static int [ ] [ ] tbl = null ;
Added SubsequenceCounter class
<nb> final class InternalContext { COMMENT private Dependency < ? > dependency ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT private final DependencyStack state = new DependencyStack ( ) ; @ suppresswarnings ( STRING0 ) <nb> final class InternalContext {...
Move detailed javadoc description down to implementation class
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class CountRequestBuilder extends BroadcastOperationRequestBuilder < CountR sourceBuilder ( ) . setQuery ( queryBinary ) ; return this ; } + + COMMENT ...
Added utility method to CountRequestBuilder
<nb> public class SmartTabLayout extends HorizontalScrollView { mTabStrip . setCustomTabColorizer ( tabColorizer ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setTabTextColors ( ColorStateList tabTextColors ) { + mTabViewTextColors = tabTextColors ; + } + ...
Added setter for tab text colors
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultClassPath implements ClassPath , Serializable { public DefaultClassPath ( Iterable < File > files ) { Set < File > noDuplicates = new LinkedHashSet < File > ( ) ; - Col...
Don t use CollectionUtils in DefaultClassPath because it is used in the very initial bootstrapping
<nb> public abstract class CmdLineTool implements Runnable { } } - LOG . debug ( STRING0 + plugins ) ; + LOG . info ( STRING0 + plugins ) ; return plugins ; }
log loaded plugins on info level during startup
<nb> class ConnectionContext { @ override public void onFailure ( @ nonnull Throwable t ) { - Messages . sendErrorResponse ( channel , Exceptions . messageOf ( t ) ) ; Messages . sendReadyForQuery ( channel ) ; } }
Don t send error in ReadyForQueryListener
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data myList . setSelectedValue ( value , true ) ; - SINGLE - if ( ! ( myChild instanceof FinderRecursivePanel ) ) { - updateRightComponent ( true ) ; - } + SINGLE + updateRightComponent ( true ) ; } @ notnull
always re create child element as existing instance might refer to previously selected value of parent
<nb> public class CordovaResourceApi { } private OpenForReadResult readDataUri ( Uri uri ) { - String uriAsString = uri . toString ( ) . substring ( NUMBER0 ) ; + String uriAsString = uri . getSchemeSpecificPart ( ) ; int commaPos = uriAsString . indexOf ( STRING0 ) ; if ( commaPos == - NUMBER1 ) { retu...
Fix data URI decoding in CordovaResourceApi
<nb> public class ModelBatch implements Disposable { return shaderProvider ; } - COMMENT + COMMENT public RenderableSorter getRenderableSorter ( ) { return sorter ; } <nb> public interface Shader extends Disposable { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT boole...
Fix erroneous Javadoc tags
<nb> public class TaskManager implements TaskOperationProtocol , PluginCommunicationPr } if ( rus . getForced ( ) == null ) { - if ( rus . getPactRatio ( ) != - NUMBER0 || this . usePACT ) { + if ( ( rus . getPactRatio ( ) != - NUMBER0 || this . usePACT ) && ! this . useAVG ) { System . out . println ( STRI...
changed configuration of checkpoints
<nb> public class JmxTransformer implements WatchedCallback { } JmxUtils . mergeServerLists ( this . masterServersList , process . getServers ( ) ) ; } catch ( Exception ex ) { - throw new LifecycleException ( STRING0 + jsonFile , ex ) ; + SINGLE + log . error ( STRING0 + jsonFile , ex ) ; } }
Error in one of th JSON configuration file should not prevent the startup of JMXTrans
<nb> public class PSurfaceJOGL implements PSurface { public void initFrame ( PApplet sketch ) { this . sketch = sketch ; initIcons ( ) ; + + SINGLE + File mesaLib = new File ( STRING0 ) ; + if ( mesaLib . exists ( ) ) { + System . out . println ( STRING1 + + STRING2 + + STRING3 + + STRING4 ) ; +...
Temporarily add warning to PSurfaceJOGL for Raspbian issue
<nb> package NAMESPACE ; public enum Get { BeforeChangeApplied , AfterChangeApplied - - SINGLE - SINGLE - SINGLE }
Removed extraneous comments
<nb> public class NioEndpoint extends AbstractEndpoint { int handshake = - NUMBER0 ; try { - if ( key != null ) handshake = socket . handshake ( key . isReadable ( ) , key . isWritable ( ) ) ; + if ( key != null ) { + if ( socket . isHandshakeComplete ( ) ) { + handshake = NUMBER1 ; + } else { + hands...
Fix upgraded connections i e WebSocket and SSL for the NIO connector
<nb> public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer . ICon final WebView wv = new WebView ( ctx ) ; WebSettings settings = wv . getSettings ( ) ; settings . setDefaultTextEncodingName ( STRING0 ) ; + settings . setBuiltInZoomControls ( true ) ; + settings . setDisplayZoomControls ...
Make wiki screen zoomable
<nb> public class HashBasedNumberedShardSpec extends NumberedShardSpec public boolean isInChunk ( InputRow inputRow ) { int hash = Math . abs ( hash ( inputRow ) ) ; - SINGLE - SINGLE - SINGLE + if ( hash == Integer . MIN_VALUE ) { + hash = NUMBER0 ; + } return hash % getPartitions ( ) == getPartiti...
actually fix it
<nb> public interface JspFile extends XmlFile { @ notnull JspxFileViewProvider getViewProvider ( ) ; + + XmlTag [ ] getDirectiveTagsInContext ( JspDirectiveKind directiveKind ) ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESP...
Collect import statements along whole jsp include context hierarchies
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public class UnderfsUtilIntegrationTest { private LocalTachyonCluster mLocalTachyonCluster = null ; private TachyonFS mTfs = null ;
Add comment to explain the usage for UnderfsUtilIntegrationTest
<nb> public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Projec putLastOrMerge ( myForwardPlaces , info , Integer . MAX_VALUE ) ; myBackInProgress = true ; - - executeCommand ( new Runnable ( ) { - @ override - public void run ( ) { - gotoPlaceInfo ( info ) ; - } - } , STRING0 ...
Fix IDE history when exception thrown
<nb> - COMMENT + COMMENT COMMENT COMMENT COMMENT
correcting typo causing build failure
<nb> public final class InodeDirectoryTest { InodeFile inodeFile2 = createInodeFile ( NUMBER0 ) ; inodeDirectory . addChild ( inodeFile1 ) ; inodeDirectory . addChild ( inodeFile2 ) ; - Assert . assertEquals ( createBlockId ( NUMBER1 ) , ( long ) inodeDirectory . getChildrenIds ( ) . get ( NUMBER2 ) ) ; - Ass...
Fixed the flaky test addChildrenTest
<nb> public class SyncManager { void checkIfDeviceReady ( ) { if ( mProvisioned && mBootCompleted ) { synchronized ( this ) { + mSyncStorageEngine . restoreAllPeriodicSyncs ( ) ; SINGLE obtainMessage ( MESSAGE_RELEASE_MESSAGES_FROM_QUEUE ) . sendToTarget ( ) ; } <nb> public class SyncManager { } if ...
Migrate PeriodicSyncs from old format
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT public class UndoManager { - private final HashMap < String , UndoOwner > mOwners = new Hash...
Change UndoManager mOwners from HashMap to ArrayMap
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> public final class SQLServerGrammar { private SQLServerGrammar ( ) { } - @ deprecated - public static final NumberExpression < Long > rowNumber = NumberTemplate . create ( Long . class , STRING0 ) ; - ...
Remove deprecated elements
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT - COMMENT + COMME...
updated copyright notice
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class Plugin implements IRendererPlugin { mGeometry . setData ( vertices , normals , textureCoords , colors , indices ) ; } - private void setShaders ( S...
Fixed typo that creeped in from LensFlare code
<nb> public class AccountModel { public void updateAccountSettingsFromRestResponse ( JSONObject json ) { mFirstName = json . optString ( STRING0 ) ; mLastName = json . optString ( STRING1 ) ; + mDisplayName = json . optString ( STRING2 ) ; mAboutMe = json . optString ( STRING3 ) ; }
Fixed a bug where the display name wouldn t be updated in the db after post me settings
<nb> public class PathMappingSettings extends AbstractPathMapper implements Cloneable return isAnyEmpty ( myLocalRoot , myRemoteRoot ) ; } - private static String trimSlash ( String s ) { + private static String trimSlash ( @ notnull String s ) { + if ( s . equals ( STRING0 ) ) { + return s ; + } retu...
Don t remove the slash if it is the only one
<nb> public class SimpAnnotationMethodIntegrationTests extends AbstractWebSocketInteg } - @ suppresswarnings ( STRING0 ) @ integrationtestcontroller static class SimpleController { <nb> public class SimpAnnotationMethodIntegrationTests extends AbstractWebSocketInteg } - @ suppresswarnings ( STRI...
Delete unnecessary SuppressWarnings unused
<nb> import NAMESPACE ; public class SampleFactory implements SampleSource { private static final GeometryFactory geometryFactory = new GeometryFactory ( ) ; - private static final double SEARCH_RADIUS_M = NUMBER0 ; SINGLE + private static final double SEARCH_RADIUS_M = NUMBER1 ; SINGLE private static final...
only use pedestrian streets
<nb> public class CodeItem extends Item < CodeItem > { COMMENT private int catchAllHandlerAddress ; - SINGLE private int baseOffset ; private int offset ;
Remove unneeded TODO
<nb> public class PojoEndpoint extends Endpoint { @ override - public void onOpen ( Session session , - EndpointConfig endpointConfiguration ) { + public void onOpen ( Session session , EndpointConfig endpointConfig ) { - ServerEndpointConfig sec = - ( ServerEndpointConfig ) endpointConfiguration ; ...
Don t always create a new POJO instance for a Server endpoint
<nb> public class CertificateManager { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class CertificateManager { BigInteger serial = ( new java . math . BigInteger ( serno ) ) . abs ( ) ; X500Name issuerDN = issuerBuilder . build ( ) ; -...
Fix wrong builder use
<nb> public class XMPPServer { name = STRING0 ; } - version = new Version ( NUMBER0 , NUMBER1 , NUMBER2 , Version . ReleaseStatus . Release , - NUMBER1 ) ; + version = new Version ( NUMBER0 , NUMBER0 , NUMBER3 , Version . ReleaseStatus . Beta , NUMBER1 ) ; if ( STRING1 . equals ( JiveGlobals . getXMLPropert...
Updated version information
<nb> public class TachyonFramework { @ override public void resourceOffers ( SchedulerDriver driver , List < Protos . Offer > offers ) { - SINGLE long masterCpu = sConf . getInt ( Constants . INTEGRATION_MASTER_RESOURCE_CPU ) ; long masterMem = sConf . getBytes ( Constants . INTEGRATION_MASTER_RESOURCE_MEM ...
Remove addressed TODO
<nb> import NAMESPACE ; import NAMESPACE ; public class Image extends Actor { - public TextureRegion region ; + public TextureRegion region = null ; public Image ( String name ) { super ( name ) ; - this . region = new TextureRegion ( ) ; } public Image ( String name , Texture texture ) {
fixed empty Image actor constructor will set region to null
<nb> public class DisUnitySettings { } public boolean isClassFiltered ( Integer classID ) { - return classFilter != null && ! classFilter . contains ( classID ) ; + return ! classFilter . isEmpty ( ) && ! classFilter . contains ( classID ) ; } public DisUnityCommand getCommand ( ) {
Fixed wrong class filtering
<nb> public class SuspiciousSystemArraycopyInspection extends BaseInspection { return ( String ) infos [ NUMBER0 ] ; } + public boolean isEnabledByDefault ( ) { + return true ; + } + public BaseInspectionVisitor buildVisitor ( ) { return new SuspiciousSystemArraycopyVisitor ( ) ; }
enable Suspicious System arraycopy call by default
<nb> public class PerformanceTest extends DistributionTest { this . debugArtifactsDirectory = debugArtifactsDirectory ; } - @ option ( option = STRING0 , description = STRING1 ) + @ option ( option = STRING0 , description = STRING2 ) public void setFlamegraphs ( String flamegraphs ) { - File artifactsDire...
Change the flamegraphs flag so that it needs to be set to true
<nb> public class MediaGridFragment extends Fragment implements OnItemClickListener , public void refreshMediaFromDB ( ) { setFilter ( mFilter ) ; if ( mCursor != null ) { + if ( mCursor . getCount ( ) == NUMBER0 ) { + refreshMediaFromServer ( NUMBER0 , true ) ; + } + mGridAdapter = new MediaGridAdapter...
FredrichO fixed issue where media wasn t loading on first launch
<nb> public class FilterResourcesStep implements Step { @ visiblefortesting static final Pattern DRAWABLE_PATH_PATTERN = Pattern . compile ( - STRING0 , Pattern . CASE_INSENSITIVE ) ; + STRING1 , Pattern . CASE_INSENSITIVE ) ; @ visiblefortesting static final Pattern NON_ENGLISH_STRING_PATH = Pattern . ...
Add webp to filtered drawable resources
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ItemFacade extends ItemBuildCraft { setCreativeTab ( CreativeTabBuildCraft . FACADES . get ( ) ) ; } - SINGLE - COMMENT - public Strin...
Fix Facade names
<nb> public class InternalAprInputBuffer extends AbstractInputBuffer < Long > { boolean readDone = false ; int result = NUMBER0 ; + int readLimit = Math . min ( bbuf . capacity ( ) , buf . length - lastValid ) ; readLock . lock ( ) ; try { if ( wrapper . getBlockingStatus ( ) == block ) { - result = Soc...
Fix refactoring regression
<nb> public class FMLContainer extends DummyModContainer implements WorldAccessContai { return STRING0 ; } + + @ override + public Object getMod ( ) + { + return this ; + } }
Fix derp with networkcheck
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FormAuthenticator } SINGLE - MessageBytes uriMB = MessageBytes . newInstance ( ) ; - CharChunk uriCC = uriMB . getCha...
Remove unnecessary code
<nb> public class DecompiledClassNode extends ClassNode { } @ override - public ClassNode getUnresolvedSuperClass ( ) { + public ClassNode getUnresolvedSuperClass ( boolean useRedirect ) { lazyInit ( ) ; - return super . getUnresolvedSuperClass ( ) ; + return super . getUnresolvedSuperClass ( useRedirec...
override correct super getters
<nb> class ApiClientImpl implements ApiClient { final ListenableFuture < Response > future = context . listenableFuture ; try { final Response response = future . get ( timeoutValue , timeoutUnit ) ; + if ( response == null ) { + LOG . error ( STRING0 , node ) ; + node . markFailure ( ) ; + continue ; +...
Fix NPE in ApiClientImpl
<nb> public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O rwLock . readLock ( ) . unlock ( ) ; } - getDatabase ( ) . command ( new OCommandSQL ( cmd . toString ( ) ) ) . execute ( ) ; + final ODatabaseRecord db = getDatabase ( ) ; + db . command ( new OCommandSQL ( cmd . toStrin...
Fixed tests with last additions
<nb> public class ClearspaceManager extends BasicModule implements ExternalComponentM SINGLE configClearspaceTask = new ConfigClearspaceTask ( ) ; SINGLE - TaskEngine . getInstance ( ) . schedule ( configClearspaceTask , JiveConstants . SECOND * NUMBER0 , JiveConstants . MINUTE ) ; + TaskEngine . getInstance ...
Increased initial delay of ConfigClearspaceTask to make sure that HttpBinding has started
<nb> public class WriteWeiboActivity extends AbstractAppActivity implements DialogInt } } ) ; - CheatSheet . setup ( WriteWeiboActivity . this , haveGPS , location ) ; - popupMenu . setOnMenuItemClickListener ( new PopupMenu . OnMenuItemClickListener ( ) { @ override <nb> public class WriteWeiboActivi...
add gps delete
<nb> public class SimpleXMLConverter implements Converter { private final Serializer serializer ; + private boolean strict = true ; + public SimpleXMLConverter ( ) { this ( new Persister ( ) ) ; } <nb> public class SimpleXMLConverter implements Converter { @ override public Object fromBody ( Typed...
Provide a setter to set strict mode to false
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class WindowFilterPushDown { Visitor visitor = new Visitor ( ) ; Long limit = visitor . process ( expression , rowNumberSymbol ) ; - if ( limi...
Do not throw an exception when the limit is greater than allowed value
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT public class SolidRasterizer implements WorldRasterizer { private Block water ; <nb> public class SolidRasterizer implements WorldRasterizer { pos2...
Add a little comment
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo and formatting in JavaDoc
<nb> public class AdjustArrayRangeAction extends DebuggerAction { public void update ( AnActionEvent e ) { boolean enable = false ; XValueNodeImpl node = XDebuggerTreeActionBase . getSelectedNode ( e . getDataContext ( ) ) ; - if ( node == null ) { - return ; - } - XValue container = node . getValueContai...
hide adjust range action if not available
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class ArgsHelper { public static String nextOptionalArg ( Iterator < String > argsIter , String defaultValue ) { <nb> public class ArgsHelper { } return argsIter . next ( ) ; } + + public static St...
Added a utility method to convert args iterator to array of args
<nb> public class TaskStackLayoutAlgorithm { mStackActionButtonRect . set ( mStackRect . left , mStackRect . top - topMargin , mStackRect . right , mStackRect . top + mFocusedTopPeekHeight ) ; - SINGLE - float aspect = ( float ) ( windowRect . width ( ) - ( mSystemInsets . left + mSystemInsets . right ) ) / ...
Fixing issue with gap between task views
<nb> public class ZWaveDbConfigurationParameter { public Integer Minimum ; public Integer Maximum ; public String Units ; + public Boolean WriteOnly ; @ xstreamimplicit public List < ZWaveDbLabel > Label ; @ xstreamimplicit <nb> public class ZWaveNodeStageAdvancer implements ZWaveEventListener { SINGL...
Add WriteOnly option to configuration parameters
<nb> public class Notification implements Parcelable COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public long when ; <nb> public class Notification implements Parcelable if ( toAdopt == null ) { mN = new Notification ( ) ; - mN . extras . putBoolean ( EXTRA_SHOW_WHEN , true ...
Changed the default if the notification time is shown
<nb> public abstract class AbstractClient implements Closeable { COMMENT COMMENT public synchronized void disconnect ( ) { - beforeDisconnect ( ) ; - if ( mConnected && mProtocol != null ) { + if ( mConnected ) { LOG . debug ( STRING0 , getServiceName ( ) , mMode , mAddress ) ; + beforeDisconnect ( ) ; ...
Addressing review comments
<nb> public class SecurityCollection implements Serializable { COMMENT COMMENT COMMENT - COMMENT - public SecurityCollection ( String name ) { - - this ( name , null ) ; - - } - - - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT public SecurityCollection ( String name , String...
Remove unused constructor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GzipHandler extends HandlerWrapper { _minGzipSize = minGzipSize ; } + + COMMENT + @ override + protected void doStart ( ) throws Exc...
Initialize GzipHandler mimeTypes
<nb> public class JglfwInput implements Input { public boolean isKeyPressed ( int key ) { if ( key == Input . Keys . ANY_KEY ) return pressedKeys > NUMBER0 ; - if ( key == Input . Keys . SYM ) { - return glfwGetKey ( app . graphics . window , getJglfwKeyCode ( GLFW_KEY_LEFT_SUPER ) ) - || glfwGetKey ( app ....
Fixed JGLFW command key on Mac
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused imports
<nb> public class HttpTunnelingServlet extends HttpServlet { protected void service ( HttpServletRequest req , HttpServletResponse res ) throws ServletException , IOException { if ( ! STRING0 . equalsIgnoreCase ( req . getMethod ( ) ) ) { - res . sendError ( HttpServletResponse . SC_METHOD_NOT_ALLOWED , STRING1...
Do not expose the server side exception message to the client
<nb> public final class StrictMode { for ( int i = NUMBER0 ; i < numViolations ; ++ i ) { if ( LOG_V ) Log . d ( TAG , STRING0 + i ) ; ViolationInfo info = new ViolationInfo ( p , ! currentlyGathering ) ; - if ( info . crashInfo . stackTrace != null && info . crashInfo . stackTrace . length ( ) > NUMBER1 ) { ...
StrictMode uses Log wtf which crashes apps on L
<nb> public final class InteropTester extends AsyncTask < Void , Void , String > { this . testCase = testCase ; this . listener = listener ; - ManagedChannelBuilder channelBuilder = ManagedChannelBuilder . forAddress ( host , port ) ; + ManagedChannelBuilder < ? > channelBuilder = ManagedChannelBuilder . forA...
Add missing generics
<nb> public interface Configuration { boolean isValidGetter ( ExecutableElement getter ) ; - void setNamePrefix ( String namePrefix ) ; - - void setUseFields ( boolean b ) ; - - void setUseGetters ( boolean b ) ; - Collection < String > getKeywords ( ) ; } <nb> public class DefaultConfiguratio...
removed setters from interface
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class CpuProfileServlet extends HttpServlet { private static final long serialVersionUID = - NUMBER0 ;
Fix javadoc link
<nb> public class LocalInspectionsPass extends TextEditorHighlightingPass { myTools = new ArrayList < LocalInspectionTool > ( ) ; LocalInspectionTool [ ] tools = DaemonCodeAnalyzerSettings . getInstance ( ) . getInspectionProfile ( ) . getHighlightingLocalInspectionTools ( ) ; - for ( Iterator iterator = workSe...
fixed jsp holder method getNextSibling
<nb> public class TypeParsers { } private static SimilarityProvider resolveSimilarity ( Mapper . TypeParser . ParserContext parserContext , String name , String value ) { - if ( parserContext . indexVersionCreated ( ) . before ( Version . V_3_0_0 ) && - STRING0 . equals ( value ) && parserContext . getSimilar...
Removes not relevant part of the bw compat test
<nb> SINGLE COMMENT - COMMENT + COMMENT COMMENT package NAMESPACE ;
fixed package info
<nb> public class RecordPageLocationCalculator COMMENT public static int offsetForId ( long id , int pageSize , int recordSize ) { - return ( int ) ( id * recordSize % pageSize ) ; + return ( int ) ( ( id * recordSize ) % pageSize ) ; } }
Ensures correct calculation w paranthesis
<nb> public class ToolsMenu PluginComponentListener , Skinnable { + COMMENT + COMMENT + COMMENT private final Logger logger = Logger . getLogger ( ToolsMenu . class ) ; COMMENT + COMMENT + COMMENT + private static final String AUTO_ANSWER_MENU_DISABLED_PROP = + STRING0 ; + + COMMENT COMM...
Adds property to disable auto answer menu
<nb> public class MailConfiguration { properties . put ( STRING0 + protocol + STRING1 , connectionTimeout ) ; properties . put ( STRING0 + protocol + STRING2 , host ) ; properties . put ( STRING0 + protocol + STRING3 , STRING4 + port ) ; - properties . put ( STRING0 + protocol + STRING5 , username ) ; + if ( ...
Fixed NPE if username isn t set put null in properties
<nb> public class InnerClassVisitor extends ClassCodeVisitorSupport implements Opcode } ; method = classNode . addSyntheticMethod ( STRING0 + objectDistance , - ACC_PUBLIC + ACC_BRIDGE + ACC_SYNTHETIC , + ACC_PUBLIC + ACC_SYNTHETIC , ClassHelper . VOID_TYPE , parameters , ClassNode . EMPTY_ARRAY , <nb...
remove bridge attribute from synthetic helper methods which are no bridges to not to confuse spring proxy code
<nb> public class AbstractPopup implements JBPopup { } if ( myInStack ) { - myFocusTrackback . setForcedRestore ( ! myOk ) ; + myFocusTrackback . setForcedRestore ( ! myOk && myFocusable ) ; myFocusTrackback . restoreFocus ( ) ; }
non focusable popup doesnt restore focus with the forced option
<nb> public class GivenWhenThenXsdITest extends WithJetty { } @ test + public void validatesXsdInputStream ( ) throws Exception { + InputStream inputstream = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( STRING0 ) ; + + get ( STRING1 ) . then ( ) . body ( matchesXsd ( inpu...
Added XSD schema validation test using given when then and input stream
<nb> public class ContextIndexSearcher extends IndexSearcher implements Releasable { } @ override + public Query rewrite ( Query original ) throws IOException { + try { + return in . rewrite ( original ) ; + } catch ( Throwable t ) { + searchContext . clearReleasables ( Lifetime . COLLECTION ) ; + thr...
Also delegate rewrite the the wrapped IndexSearcher
<nb> public class ExternalAnnotationsLineMarkerProvider implements LineMarkerProvider @ override public LineMarkerInfo getLineMarkerInfo ( @ notnull final PsiElement element ) { SINGLE - if ( Registry . is ( STRING0 ) ) { + if ( Registry . is ( STRING0 ) && ! ( element instanceof PsiCompiledElement ) ) { re...
don t hide contracts for libraries
<nb> public class DatabaseShardManager Set < String > identifiers = shards . stream ( ) . map ( ShardInfo : : getNodeIdentifiers ) . flatMap ( Collection : : stream ) - . collect ( toSet ( ) ) ; + . collect ( toSet ( ) ) ; return Maps . toMap ( identifiers , this : : getOrCreateNodeId ) ; }
Fix formatting in DatabaseShardManager
<nb> public class TestPerformUpgradeIfNecessary order . verify ( monitor , times ( NUMBER0 ) ) . migrationCompleted ( ) ; order . verifyNoMoreInteractions ( ) ; - assertableLogProvider . assertContainsMessageContaining ( STRING0 ) ; + assertableLogProvider . assertContainsMessageContaining ( STRING1 ) ; } ...
Fixed log message assertion in TestPerformUpgradeIfNecessary shouldUpgradeDatabase
<nb> public class Application implements ApplicationEventHandlers commands_ . newSession ( ) . remove ( ) ; } + SINGLE + commands_ . restartRClearOutput ( ) . remove ( ) ; + commands_ . restartRRunAllChunks ( ) . remove ( ) ; + SINGLE SINGLE showToolbar ( uiPrefs_ . get ( ) . toolbarVisible ( ) . ge...
remove restart r commands until they are implemented
<nb> public class StreamingTemplateEngine extends TemplateEngine { if ( errors . size ( ) > NUMBER0 ) { Message firstMessage = errors . get ( NUMBER0 ) ; if ( firstMessage instanceof SyntaxErrorMessage ) { - SINGLE - @ suppresswarnings ( { STRING0 } ) SyntaxException syntaxException = ( ( SyntaxErrorMessa...
Cleaning white space
<nb> public class Util { } static native void nativeSetDebugLevel ( int level ) ; + SINGLE + static void javaPrint ( String txt ) { + System . out . print ( txt ) ; + } + public static void waitForEnter ( ) { System . out . println ( STRING0 ) ; Scanner sc = new Scanner ( System . in ) ;
reanabled javaPrint method in Util