diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> final class ObjectToOptionalConverter implements ConditionalGenericConverter {
}
else {
Object target = this . conversionService . convert ( source , sourceType , new GenericTypeDescriptor ( targetType ) ) ;
- return Optional . of ( target ) ;
+ return Optional . ofNullable ( target ) ;
}
} | ObjectToOptionalConverter uses Optional ofNullable after ConversionService invocation |
<nb> public class SpeeDRF extends Job . ValidatedJob {
Frame train = FrameTask . DataInfo . prepareFrame ( source , response , ignored_cols , ! regression COMMENT , false , false ) ;
Frame test = null ;
if ( validation != null ) {
- test = FrameTask . DataInfo . prepareFrame ( validation , validation . vecs ( )... | tweak the test data so that final column gets mapped |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> CPU wall : FLOAT0 s FLOAT1 MB / s total , FLOAT0 s FLOAT1 MB / s per node
Duration wallTime = Duration . nanosSince ( start ) ;
QueryI... | Remove unused variable |
<nb> public class FileDocumentManagerImpl extends FileDocumentManager implements Appl
long documentStamp = document . getModificationStamp ( ) ;
long oldFileStamp = event . getOldModificationStamp ( ) ;
if ( documentStamp != oldFileStamp ) {
- LOG . info ( STRING0 ) ;
+ LOG . info ( STRING1 + file . getName (... | log file name for document contents changed conflict |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShadowView {
return false ;
}
... | Added ShadowView dispatchKeyEvent |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix broken Javadoc |
<nb> public class NetworkSenderReceiverTest
sender = new NetworkSender ( new NetworkSender . Configuration ( )
{
@ override
+ public int port ( )
+ {
+ return NUMBER0 ;
+ }
+
+ @ override
public int defaultPort ( )
{
return NUMBER0 ;
<nb> public abstract class Server < T , R > implements Chann... | Fixed broken test |
<nb> public class CellRendererPanel extends JPanel {
SINGLE
@ override
public void doLayout ( ) {
- if ( getComponentCount ( ) != NUMBER0 ) return ;
- Rectangle bounds = new Rectangle ( getWidth ( ) , getHeight ( ) ) ;
- JBInsets . removeFrom ( bounds , getInsets ( ) ) ;
- getComponent ( NUMBER1 ) . setBo... | do super doLayout for other than one child |
<nb> import static NAMESPACE ;
COMMENT
public class SpringBootAutoConfigurationMojo extends AbstractMojo {
+ SINGLE
+ private static final String [ ] EXCLUDE_DATAFORMATS = { STRING0 } ;
+
COMMENT
COMMENT
COMMENT
<nb> public class SpringBootAutoConfigurationMojo extends AbstractMojo {
if ( json != ... | Generate spring boot auto configuration for all Camel data formats that has options that can be configured |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class RequestQueries extends RequestArguments {
SINGLE
SINGLE
COMMENT
- if ( H2O . OPT_ARGS . check_rest_params ) {
+ if ( H2O . OPT_ARGS . ... | Skip argument checking for GridSearch |
<nb> public class FromFtpExclusiveReadNoneStrategyTest extends FtpServerTestSupport {
@ test
public void testPollFileWhileSlowFileIsBeingWrittenUsingNonExclusiveRead ( ) throws Exception {
+ SINGLE
+ if ( isPlatform ( STRING0 ) ) {
+ return ;
+ }
+
context . addRoutes ( new RouteBuilder ( ) {
@ over... | Fixed test on windows |
<nb> public class Strings {
}
public static String [ ] splitStringToArray ( final String s , final char c ) {
+ if ( s . length ( ) == NUMBER0 ) {
+ return Strings . EMPTY_ARRAY ;
+ }
final char [ ] chars = s . toCharArray ( ) ;
int count = NUMBER1 ;
for ( final char x : chars ) { | optimize for empty string case |
<nb> public class StaticLayout extends Layout {
SINGLE
int leftLen = mLeftIndents == null ? NUMBER0 : mLeftIndents . length ;
int rightLen = mRightIndents == null ? NUMBER0 : mRightIndents . length ;
- int indentsLen = Math . max ( NUMBER1 , Math . min ( leftLen , rightLen ) - mLineCount ) ;
+ int indentsLen ... | Fix StaticLayout left right indent |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> class ApplicationThreadProxy implements IApplicationThread {
info . writeToParcel ( data , NUMBER0 ) ;
compatInfo . writeToParce... | Debug logging for a certain class of binder transaction failures |
<nb> public class Test extends ConventionTask implements JavaForkOptions , PatternFilt
SINGLE
SINGLE
try {
- return new URI ( STRING0 , STRING1 , getTestReportDir ( ) + STRING2 , null , null ) . toString ( ) ;
+ return new URI ( STRING0 , STRING1 , new File ( getTestReportDir ( ) , STRING3 ) . toString ( ) , ... | attempt solve problem with test report URL on windows |
<nb> public class HeaderItem extends Item < HeaderItem > {
COMMENT
private static final int LITTLE_ENDIAN = NUMBER0 ;
- private static final int BIG_ENDIAN = NUMBER1 ;
+ private static final int BIG_ENDIAN = NUMBER2 ;
COMMENT
private int magic_index = NUMBER3 ; | Fix BIG_ENDIAN constant in HeaderItem |
<nb> public final class TrampolineScheduler extends Scheduler {
if ( wip . getAndIncrement ( ) == NUMBER0 ) {
do {
- queue . poll ( ) . action . call ( ) ;
+ TimedAction polled = queue . poll ( ) ;
+ SINGLE
+ if ( polled != null ) {
+ polled . action . call ( ) ;
+ }
} while ( wip . decrementAndGet ... | Fix TrampolineScheduler NullPointerException |
<nb> public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
CO... | clarify largest JPEG dimension expectation |
<nb> public class PsiPolyExpressionUtil {
@ nullable
@ override
+ public Boolean visitWildcardType ( PsiWildcardType wildcardType ) {
+ final PsiType bound = wildcardType . getBound ( ) ;
+ if ( bound != null ) {
+ return bound . accept ( this ) ;
+ }
+ return false ;
+ }
+
+ @ nullable
+ @ ov... | wildcard bounds could mention type vars |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
@ databasechange ( name = STRING0 ,
description = STRING1 ,
<nb> public class CreateProcedureChange extends AbstractChange implements DbmsTargete
}
if ( procedureText != null ) {
- stream = new ... | make the check sum generation of the createProcedure change independent of the default encoding which is different on different OS |
<nb>
public class Test {
- public String foo ( String path ) {
- String smth = new String ( path ) ;
+ public Test ( String s ) { }
+
+ public Test foo ( String path ) {
+ Test smth = new Test ( path ) ;
if ( path == null ) return null ;
return smth ;
} | adapt dfa testAlexBug to jdk notnull inference |
<nb> public class SafeDeleteHandler implements RefactoringActionHandler {
RefactoringSettings settings = RefactoringSettings . getInstance ( ) ;
SafeDeleteProcessor . createInstance ( project , null , elementsToDelete , settings . SAFE_DELETE_SEARCH_IN_COMMENTS ,
settings . SAFE_DELETE_SEARCH_IN_NON_JAVA , true )... | fix no run for successRunnable in unit test code |
<nb> public class JavaParametersUtil {
if ( dependencies != null ) {
for ( Module module1 : dependencies ) {
outputs . addAll ( ProjectRootsTraversing . RootTraversePolicy . ALL_OUTPUTS . getOutputs ( module1 ) ) ;
+ final OrderEntry [ ] orderEntries = ModuleRootManager . getInstance ( module1 ) . getOrderEntri... | add exported library entries to command line |
<nb> public class ResStringValue extends ResScalarValue {
@ override
public String encodeAsResXmlValue ( ) {
- return ResXmlEncoders . enumerateNonPositionalSubstitutions (
- ResXmlEncoders . encodeAsXmlValue ( mRawValue ) ) ;
+ return ResXmlEncoders . encodeAsXmlValue ( mRawValue ) ;
}
@ override | don t enumerate non pos substs |
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
@ suppresswarnings ( STRING0 )
<nb> import NAMESPACE ;
import NAMESPACE ;
import... | Moved the new sync migrator into a more sensical package |
<nb> public class PDPTest extends TestUtil {
SINGLE
pdp = new PDP ( Key . < PDP > make ( ) ) ;
pdp . _nbins = NUMBER0 ;
+ pdp . _cols = new String [ ] { STRING0 , STRING1 , STRING2 } ;
pdp . _model_id = ( Key ) model . _key ;
pdp . _frame_id = fr . _key ; | Add a categorical column explicitly to weather junit for PDP |
<nb> public abstract class BaseOAuthActivity extends BaseActivity {
COMMENT
if ( webview != null ) {
webview . getSettings ( ) . setJavaScriptEnabled ( false ) ;
+ SINGLE
+ webview . setWebViewClient ( null ) ;
webview = null ;
}
} | Remove WebViewClient when destroying BaseOAuthActivity |
<nb> public final class DefaultPassConfig extends PassConfig {
checks . add ( checkVars ) ;
}
- if ( options . computeFunctionSideEffects ) {
+ if ( options . computeFunctionSideEffects && ! options . skipNonTranspilationPasses ) {
checks . add ( checkRegExp ) ;
} | Guarding moved pass CheckRegExp with skipNonTranspilationPasses flag |
<nb> public class NeoFullRESTInteraction extends CommunityServerTestBase implements N
{
subject . response = authenticate ( subject . principalCredentials ) ;
return subject . response . status ( ) == NUMBER0 || SINGLE
- subject . response . status ( ) == NUMBER1 ; SINGLE
+ ( subject . response . status ( ) =... | Improved password change required check in NeoFulLRESTInteracion |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Java Remove repeated javadoc point |
<nb> class XBreakpointItem extends BreakpointItem {
}
final SimpleTextAttributes attributes =
myBreakpoint . isEnabled ( ) ? SimpleTextAttributes . SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes . GRAYED_ATTRIBUTES ;
- renderer . append ( getDisplayText ( ) , attributes ) ;
+ renderer . append ( StringUtil . n... | setting field breakpoint causes IAE at SimpleColoredComponent append |
<nb> public class ContactManager {
}
else
{
- mView . loadUrl ( STRING0 ) ;
+ if ( all )
+ mView . loadUrl ( STRING1 ) ;
+ else
+ mView . loadUrl ( STRING0 ) ;
}
} | Fixing up contacts so it works by default with the OLD Contact API |
<nb> public abstract class BuilderAnnotationContributor extends AstTransformContribut
public static final String BUILDER_PACKAGE = STRING0 ;
public static final String BUILDER_FQN = BUILDER_PACKAGE + STRING1 ;
- public static final String ORIGIN_INFO = STRING2 ;
+ public static final String ORIGIN_INFO = STRI... | groovy set origin info for setters update origin info string |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RmiTest extends CamelSpringTestSupport {
@ test
public void testRmi ( ) throws Exception {
- String out = template . requ... | Do some enhancement on camel example osgi rmi to run the test without start the camel router |
<nb> public class SubDeploymentDependencyProcessor implements DeploymentUnitProcessor
}
}
+ SINGLE
+ for ( AdditionalModuleSpecification module : deploymentUnit . getAttachmentList ( Attachments . ADDITIONAL_MODULES ) ) {
+ module . addSystemDependency ( new ModuleDependency ( moduleLoader , moduleIdentifie... | Make ear lib availble to additional modules |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class GithubProjectGeneratorPeer implements WebProjectGenerator . GeneratorPeer < GithubTagInfo > {
+
+ public static String getGithubZipballUrl ( String ghUserName , String ghRepoName , Strin... | support new github projects |
<nb> public class TextDataImpl implements TextData {
public static class TextLine {
String text = STRING0 ;
- Rectangle2D bounds = new Rectangle ( NUMBER0 , NUMBER0 ) ;
+ Rectangle2D bounds ;
public TextLine ( ) {
}
+ public TextLine ( String text ) {
+ this . text = text ;
+ }
+
public Text... | Fix Text bounds calculation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | change the javadoc name example in LoadBalancerState to use generic host name |
<nb> public class Tuples
public Value bind ( List < ByteBuffer > values ) throws InvalidRequestException
{
ByteBuffer value = values . get ( bindIndex ) ;
- if ( value == null )
- return null ;
-
return value == null ? null : Value . fromSerialized ( value , ( TupleType ) receiver . type ) ;
}
} | remove redundant check for null |
<nb> public final class LocalizedMessage
aSourceClass , aCustomMessage ) ;
}
+ COMMENT
+ public static void clearCache ( )
+ {
+ synchronized ( BUNDLE_CACHE ) {
+ BUNDLE_CACHE . clear ( ) ;
+ }
+ }
+
COMMENT
public String getMessage ( )
{ | Added method to clear cache |
<nb> public class TextEditingTarget implements
@ handler
void onUsingRMarkdownHelp ( )
{
- globalDisplay_ . openRStudioLink ( STRING0 ) ;
+ if ( extendedType_ . equals ( STRING1 ) )
+ globalDisplay_ . openRStudioLink ( STRING2 ) ;
+ else
+ globalDisplay_ . openRStudioLink ( STRING0 ) ;
}
@ handler | add alternate help link for rmarkdown extended type |
<nb> public interface IAssemblyRecipeManager {
void addRecipe ( String id , int energyCost , ItemStack output , Object . . . input ) ;
void addRecipe ( IFlexibleRecipe < ItemStack > recipe ) ;
+
+ void removeRecipe ( String id ) ;
+
+ void removeRecipe ( IFlexibleRecipe < ItemStack > recipe ) ;
Collec... | update API for IMC removal |
<nb> public class TxMaker {
Engine other = globalMods . putIfAbsent ( recid , this ) ;
if ( other != this && other != null ) {
rollback ( ) ;
- Utils . LOG . warning ( STRING0 + other ) ;
throw new TxRollbackException ( ) ;
}
} | Remove warning from TxMaker it was fairly common case |
<nb> public class TransportIndicesShardStoresAction extends TransportMasterNodeReadAc
final String [ ] concreteIndices = indexNameExpressionResolver . concreteIndices ( state , request ) ;
final Set < ShardId > shardIdsToFetch = new HashSet < > ( ) ;
- logger . trace ( STRING0 , state . prettyPrint ( ) ) ;
+ ... | shard store shouldn t log the entire cluster state under trace but just its version |
<nb> public class Starter {
run ( new Args ( sargs ) , sargs ) ;
}
- protected void run ( Args args , String [ ] sargs ) {
+ SINGLE
+ public void run ( Args args , String [ ] sargs ) {
PROCESS_ARGS = Collections . unmodifiableList ( Arrays . asList ( sargs ) ) ; | Make method public as is needed for reflection when running in classloader |
<nb> public class TitledSeparator extends JPanel {
add ( separator ,
new GridBagConstraints ( NUMBER0 , NUMBER1 , GridBagConstraints . REMAINDER , NUMBER0 , NUMBER0 , NUMBER0 , GridBagConstraints . CENTER , GridBagConstraints . HORIZONTAL ,
new Insets ( NUMBER2 , NUMBER1 , NUMBER1 , NUMBER3 ) , NUMBER1 , NUMBER1 ... | titled separator insets |
<nb> public abstract class BaseDateTimeField extends DateTimeField {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class BaseDateTimeField extends DateTimeField {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Remove link that causes javadoc issues |
<nb> public class MediaMetadataRetriever
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public static final int METADATA_KEY_CD_TRACK_NUMBER = NUMBER0 ; | Fix a doc typo |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Add import and fix compilation |
<nb> public final class SecureHashMap < K , V > extends AbstractMap < K , V > implements Conc
private static final float DEFAULT_LOAD_FACTOR = FLOAT0 ;
COMMENT
- private static final Object [ ] RESIZED = new Object [ NUMBER0 ] ;
+ private static final Item [ ] RESIZED = new Item [ NUMBER0 ] ;
COMMENT
priv... | Fix resize error |
<nb> public class HttpSession extends ClientSession {
public String getResponse ( long requestID ) throws HttpBindException {
for ( HttpConnection connection : connectionQueue ) {
if ( connection . getRequestId ( ) == requestID ) {
- if ( requestID > lastRequestID + NUMBER0 ) {
- throw new HttpBindException (... | Removed some last request id setting |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class AppLog {
}
private String toHtml ( ) {
+ DateFormat formatter = new SimpleDateFo... | Add date to displayed log |
<nb> public class ADBParser {
}
public String parseGetDeviceIp ( String ipInfo ) {
-
if ( ipInfo . isEmpty ( ) || ipInfo . contains ( ERROR_PARSING_DEVICE_IP_KEY ) ) {
return STRING0 ;
}
<nb> public class ADBParser {
int start = splittedOutput [ NUMBER0 ] . indexOf ( START_DEVICE_IP_INDICATOR ) + NUMB... | Remove space not needed |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface ICacheRecordStore {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improved JavaDocs for cache impl reviewed |
<nb> public final class Realm implements Closeable {
COMMENT
COMMENT
COMMENT
- public static boolean deleteRealmFile ( Context context , String fileName ) {
+ public static synchronized boolean deleteRealmFile ( Context context , String fileName ) {
boolean result = true ;
File writableFolder = context . ... | Make the deleteRealmFile method synchronized |
<nb> public class ShaderUtils {
card = NUMBER0 ;
}
} else {
- card = Integer . parseInt ( type . replaceAll ( STRING0 , STRING1 ) ) ;
+ card = Integer . parseInt ( type . replaceAll ( STRING2 , STRING1 ) ) ;
if ( swizzling . length ( ) > NUMBER0 ) {
if ( card >= swizzling . length ( ) ) {
<nb> public ... | The ShaderNodes system now correctly handles swizzle of types like ivecn uvecn bvecn |
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
... | fixed copyright headers |
<nb> public class SelectTemplateStep extends ModuleWizardStep implements SettingsStep
@ override
public boolean isAutoExpandNode ( NodeDescriptor nodeDescriptor ) {
- return false ;
+ return myMatchers != null && myMatchers . length > NUMBER0 ;
}
@ override
<nb> public class FilteringTreeBuilder exten... | selecting leaf node |
<nb> class WriteResultCallback extends CommandResultBaseCallback < BsonDocument > {
private final SingleResultCallback < WriteConcernResult > callback ;
private final MongoNamespace namespace ;
private final RequestMessage nextMessage ; SINGLE
- private boolean ordered ;
+ private final boolean ordered ;
pr... | Made field final in WriteResultCallback |
<nb> public class BitmapLruCache extends LruCache < String , Bitmap > implements ImageCac
}
@ override
- protected void entryRemoved ( boolean evicted , String key , Bitmap oldValue , Bitmap newValue ) {
- if ( ! oldValue . isRecycled ( ) ) {
- oldValue . recycle ( ) ;
- oldValue = null ;
- }
- }
- ... | Fixed crash where bitmaps were being recycled too early |
<nb> public class PreDexMerge extends AbstractBuildRule implements InitializableFromD
SINGLE
metadataSubdir = metadataDir . resolve ( AndroidBinary . SECONDARY_DEX_SUBDIR ) ;
jarfilesSubdir = jarfilesDir . resolve ( AndroidBinary . SECONDARY_DEX_SUBDIR ) ;
- additionalJarfilesDir = jarfilesDir . resolve ( STRIN... | remove extra module files from predex enabled builds |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
SINGLE
import NAMESPACE ;
<nb> public class TestClose extends TomcatBaseTest {
@ test
public void testTcpClose ( ) throws Exception {
+ SINGLE
+ Assume . assumeFalse ( STRING0 ,
+ getTomcatI... | Disable tests for APR that do not currently pass with that connector |
<nb> public abstract class AbstractLoader
}
return new InputSource ( dtdIS ) ;
}
-
- return super . resolveEntity ( aPublicId , aSystemId ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ try {
+ if ( false ) {
+ throw new IOException ( STRING0 ) ;
+ }
+ return super . resolveEntity ( aPublicId , aS... | Workaround for DefaultHandler resolveEntity throws problem |
<nb> public class ExecUtil {
@ notnull
private static String escapeUnixShellArgument ( @ notnull String arg ) {
- return STRING0 + arg . replace ( STRING0 , STRING1 ) + STRING0 ;
+ return STRING0 + arg . replace ( STRING0 , STRING2 ) + STRING0 ;
}
COMMENT | Fixed escaping of sh arguments that contain characters |
<nb> public class ImportMetadata
ImportTableHandle importTableHandle = new ImportTableHandle ( catalogName , schemaName , tableName ) ;
- List < ColumnMetadata > columns = convertToMetadata ( catalogName , importTableHandle , tableSchema ) ;
+ List < ColumnMetadata > columns = convertToMetadata ( catalogName ... | Remove unused parameter |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
impor... | Resolved a compilation error |
<nb> public class MessageParser extends AbstractParser implements
from . toBareJid ( ) ,
packet . getId ( ) ,
Message . STATUS_SEND_FAILED ) ;
- if ( message . getEncryption ( ) == Message . ENCRYPTION_OTR ) {
+ if ( message != null && message . getEncryption ( ) == Message . ENCRYPTION_OTR ) {
message . ge... | fixed npe in error message handling |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TraktShoutsFragment extends SherlockFragment implements
}
Intent intent = new Intent ( Intent . ACTION_VIEW , Uri . parse (... | Switch comment links to tryStartActivity |
<nb> public class TCPNetworkConnection implements NetworkConnection {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public TCPNetworkConnection ( PeerAddress peerAddress , NetworkParameters params ,
- int bestHeight , int connectTimeout , boolean dedupe )
+ int best... | Add units to the TCPNetworkConnection connectTimeout Msec parameter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WsServerContainer extends WsWebSocketContainer
}
- public void doUpgrade ... | Remove unused method |
<nb> public class RegexAutoTagScanner extends PluginPassiveScanner {
private PassiveScanThread parent = null ;
+ public RegexAutoTagScanner ( ) {
+ SINGLE
+ }
+
public RegexAutoTagScanner ( String name , TYPE type , String config ) {
super ( ) ;
this . name = name ; | Added null constructor to RegexAutoTagScanner to prevent error being logged |
<nb> import NAMESPACE ;
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
+ COM... | Tweak the ConfigBeanFactory javadoc a bit |
<nb> public class SdkSettingsStep extends ModuleWizardStep {
if ( myWizardContext . isCreatingNewProject ( ) ) { SINGLE
Sdk jdk = myJdkComboBox . getSelectedJdk ( ) ;
myWizardContext . setProjectJdk ( jdk ) ;
- myModuleBuilder . setModuleJdk ( jdk ) ;
+ SINGLE
}
} | module should inherit project SDK for newly created project |
<nb> public abstract class FrameTask < T extends FrameTask < T > > extends MRTask2 < T > {
ArrayList < Integer > constantOrNAs = new ArrayList < Integer > ( ) ;
for ( int i = NUMBER0 ; i < vecs . length - NUMBER1 ; ++ i ) {
SINGLE
- if ( ( dropConstantCols && vecs [ i ] . min ( ) == vecs [ i ] . max ( ) ) || ve... | Fix parentheses in logical expression for ignoring const or columns with high N As |
<nb> public abstract class RealmObject {
currentTableVersion = row . getTable ( ) . version ( ) ;
}
}
-
- @ suppresswarnings ( STRING0 )
- static Object get ( RealmObject obj , String fieldName ) {
- return null ;
- }
-
- @ suppresswarnings ( STRING0 )
- static void set ( RealmObject obj , String ... | Remove unused methods from RealmObject |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
public class SSRBundle {
- private static final ResourceBundle ourBundle = ResourceBundle . getBundle ( STRING0 ) ;
+ @ nonnls private static final ResourceBundle ourBundle = ResourceBundle . get... | Moving all property files to special module |
<nb> public class SpriteBatch {
COMMENT
public SpriteBatch ( int size ) {
this . buffers = new Mesh [ NUMBER0 ] ;
- this . buffers [ NUMBER1 ] = new Mesh ( false , size * NUMBER2 , size * NUMBER3 , new VertexAttribute (
+ this . buffers [ NUMBER1 ] = new Mesh ( VertexDataType . VertexArray , false , size * NU... | changed SpriteBatch uses vertex arrays if SpriteBatch or SpriteBatch int size constructors are used |
<nb> public class DistanceCalculatorPlugin extends OsmandPlugin {
@ override
public void updateLayers ( OsmandMapTileView mapView , MapActivity activity ) {
if ( isActive ( ) ) {
+ if ( distanceCalculatorLayer == null ) {
+ registerLayers ( activity ) ;
+ }
if ( ! mapView . isLayerVisible ( distanceCalcul... | Fix distance calculator |
<nb> public class RecorderImpl
private DataSink sink ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private boolean mute = false ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RecorderImpl
{
deviceSession . setContentDescriptor ( getContentDescriptor ( format ) ) ;
+ SINGLE
+ SIN... | Fix initial mute state when starting recorder |
<nb>
+ COMMENT
+ COMMENT
+ 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... | Missing license headers for two files Jesus Camacho Rodriguez reviewed by Ashutosh Chauhan |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Convert new JCA thread resource handlers to StepHandler |
<nb> public class SVGExporter implements GraphRenderer , VectorialFileExporter , LongTa
GraphSheet graphSheet = controller . getGraphSheet ( ) ;
Graph graph = graphSheet . getGraph ( ) ;
+ Progress . start ( progress ) ;
+
SINGLE
int max = NUMBER0 ;
if ( graph . showNodes ( ) ) { | Debug SVGExporter progress |
<nb> public class ChatWindow
if ( title . startsWith ( STRING0 ) ) {
setTitle ( title . substring ( NUMBER0 , title . length ( ) ) ) ;
}
- }
-
- public void windowClosing ( WindowEvent e )
- {
- close ( true ) ;
- }
+ }
}
COMMENT | invoke close only once |
<nb> public class IncrementalIndexStorageAdapter implements StorageAdapter
timeStart , new String [ ] [ ] { }
) ,
new IncrementalIndex . TimeAndDims (
- Math . min ( actualInterval . getEndMillis ( ) , gran . next ( timeStart ) ) , new String [ ] [ ] { }
+ Math . min ( actualInterval . getEndMillis ( ) , gran... | fix cursor overshooting granularity boundaries in IncrementalIndexStorageAdapter as well |
<nb> abstract public class AbstractPlugin implements Plugin , Comparable < Object > {
}
@ override
+ public void setTechSet ( TechSet ts ) {
+ this . techSet = ts ;
+ }
+
+ @ override
public Date getTimeStarted ( ) {
return this . started ;
} | Restored the implementation of method Plugin setTechSet TechSet |
<nb> public class PlanGenerator {
private List < P2 < Double > > encodeElevationProfile ( Edge edge , double offset ) {
if ( ! ( edge instanceof EdgeWithElevation ) ) {
- return Collections . emptyList ( ) ;
+ return new ArrayList < P2 < Double > > ( ) ;
}
EdgeWithElevation elevEdge = ( EdgeWithElevation ... | make zag removal work even with edges with empty elevation |
<nb> public abstract class Invocation implements OperationResponseHandler , Runnable {
long maxCallTimeout = future . getMaxCallTimeout ( ) ;
long expirationTime = op . getInvocationTime ( ) + maxCallTimeout ;
+ long clusterTime = nodeEngine . getClusterService ( ) . getClusterClock ( ) . getClusterTime ( ) ;
... | Invocation calltimeout should use clusterclock |
<nb> public class MultiComparator implements Comparator < Object [ ] > {
public MultiComparator ( Evaluator ev , boolean [ ] directions ) {
this . ev = ev ;
- this . asc = directions ;
+ this . asc = directions . clone ( ) ;
}
public int compare ( Object [ ] o1 , Object [ ] o2 ) {
<nb> import static N... | made Expr types immutable |
<nb> public class Version extends Service
{
if ( version == null || version . equals ( STRING0 ) )
{
- return STRING1 ;
+ return STRING2 ;
}
else if ( version . contains ( STRING3 ) )
{ | removed angle brackets from default version of version to make url friendly |
<nb> public class BroadcastRecord implements Record {
COMMENT
COMMENT
COMMENT
- private static final int RECORD_SIZE = NUMBER0 ;
+ private static final int RECORD_SIZE = NUMBER1 ;
COMMENT
COMMENT | Reduced size of broadcast buffer |
<nb> public class Util {
priority = Log . WARN ;
else if ( ex instanceof UnknownHostException )
priority = Log . WARN ;
+ else if ( ex instanceof UnsatisfiedLinkError )
+ priority = Log . WARN ;
else
priority = Log . ERROR ; | Suppress UnsatisfiedLinkError debug info |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- impo... | removed unused imports |
<nb> public class WifiService extends IWifiManager . Stub {
return false ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( mWifiState == WIFI_STATE_UNKNOWN && ! enable ) {
+ return false ;
+ }
+
setWifiEnabledState ( enable ? WIFI_STATE_ENABLING : WIFI_STATE_... | Avoid wifi disable in a UNKNOWN state |
<nb> public class GitblitManager implements IGitblit {
RepositoryModel cloneModel = repository . cloneAs ( cloneName ) ;
SINGLE
cloneModel . addOwner ( user . username ) ;
+
+ SINGLE
+ SINGLE
+ if ( repository . accessRestriction . exceeds ( cloneModel . accessRestriction ) ) {
+ cloneModel . accessRest... | New forks shall respect the source repository access restriction |
<nb> public final class IoUtils {
current += count ;
if ( shouldStopLoading ( listener , current , total ) ) return false ;
}
+ os . flush ( ) ;
return true ;
} | Prevent IOException suppressing at the end of file copying |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WinIntelliJButtonPainter implements Border , UIResource {
g . translate ( x , y ) ;
if ( hasFocus ) {
- g . setStroke ( new BasicStroke ( ... | fix dotted painting around button |
<nb> public class PathManager {
private static String getAbsolutePath ( String path ) {
path = FileUtil . expandUserHome ( path ) ;
- return new File ( path ) . getAbsolutePath ( ) ;
+ return FileUtil . toCanonicalPath ( new File ( FileUtil . toCanonicalPath ( path ) ) . getAbsolutePath ( ) ) ;
}
privat... | convert idea home path and other path properties to canonical paths |
<nb> public class NettyTransport extends AbstractLifecycleComponent < Transport > implem
BytesStreamOutput bStream = new BytesStreamOutput ( ) ;
bStream . skip ( NettyHeader . HEADER_SIZE ) ;
StreamOutput stream = bStream ;
- if ( options . compress ( ) ) {
+ SINGLE
+ SINGLE
+ if ( options . compress ( ) ... | properly support global transport compression with new bytes transport request optimization |
<nb> public class JavaGenerator extends AbstractGenerator {
}
protected void printPackage ( JavaWriter out , Definition definition , Mode mode ) {
+ out . println ( STRING0 ) ;
+ out . println ( STRING1 ) ;
+ out . println ( STRING2 ) ;
out . println ( STRING3 , getStrategy ( ) . getJavaPackageName ( defi... | Restored file header |
<nb> public class Thread implements Runnable {
}
public native long getId ( ) COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT ;
<nb> public class Thread implements Runnable {
COMMENT
COMMENT
public native UncaughtExceptionHandler getUncaughtExceptionHandler ( ) COMMENT
- COMMENT
+ COMMEN... | Fixed uncaught exception handling Thread getId |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.