diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/CoverageAndSNPTrack.java b/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/CoverageAndSNPTrack.java
index 0cc4d93f0..1837e3782 100644
--- a/src/main/java/fi/csc/microarray/client/visualisation/methods/gb... | true | true | private Collection<Drawable> getDrawableReads(Strand dataStrand, Color color) {
Collection<Drawable> drawables = getEmptyDrawCollection();
Chromosome chr = getView().getBpRegion().start.chr;
// If SNP highlight mode is on, we need reference sequence data
char[] refSeq = SeqBlockTrack.getReferenceArray(r... | private Collection<Drawable> getDrawableReads(Strand dataStrand, Color color) {
Collection<Drawable> drawables = getEmptyDrawCollection();
Chromosome chr = getView().getBpRegion().start.chr;
// If SNP highlight mode is on, we need reference sequence data
char[] refSeq = SeqBlockTrack.getReferenceArray(r... |
diff --git a/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/UrlEncodeDirective.java b/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/UrlEncodeDirective.java
index f4e539a0a..aa8365de7 100755
--- a/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/UrlEncodeDirective.... | true | true | public boolean render(final InternalContextAdapter context, final Writer writer, final Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException {
if (node.jjtGetNumChildren() < 1) {
rsvc.error("#" + getName() + " - missing argument");
r... | public boolean render(final InternalContextAdapter context, final Writer writer, final Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException {
if (node.jjtGetNumChildren() < 1) {
rsvc.error("#" + getName() + " - missing argument");
r... |
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/CompositeArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/CompositeArtifactRepository.java
index 2efd93960..89394ab2... | true | true | private boolean isSane(URI toCheckURI, String comparatorID, int startingIndex) {
IArtifactRepository toCheckRepo = null;
try {
toCheckRepo = load(toCheckURI);
} catch (ProvisionException e) {
//repository failed the load.
LogHelper.log(e);
return false;
}
IArtifactComparator comparator = Artifac... | private boolean isSane(URI toCheckURI, String comparatorID, int startingIndex) {
IArtifactRepository toCheckRepo = null;
try {
toCheckRepo = load(toCheckURI);
} catch (ProvisionException e) {
//repository failed the load.
LogHelper.log(e);
return false;
}
IArtifactComparator comparator = Artifac... |
diff --git a/src/main/java/de/lessvoid/nifty/effects/impl/Move.java b/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
index bb5654c0..d37af916 100644
--- a/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
+++ b/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
@@ -1,130 +1,130 @@
package de.lessvoid.... | false | true | public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
direction = parameter.getProperty("direction");
if (LEFT.equals(direction)) {
offset = element.getX() + element.getWidth();
} else if (RIGHT.equals(direction)) {
offset = element.getX() + element... | public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
String mode = parameter.getProperty("mode");
direction = parameter.getProperty("direction");
if (LEFT.equals(direction)) {
offset = element.getX() + element.getWidth();
} else if (RIGHT.equals(dire... |
diff --git a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslationCommand.java b/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslationCommand.java
index 6a86f7f..391ac35 100644
--- a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslat... | true | true | protected boolean pushToZanata(final DataProviderFactory providerFactory, final ContentSpec contentSpec,
final ContentSpecWrapper contentSpecEntity) {
final Map<TopicWrapper, SpecTopic> topicToSpecTopic = new HashMap<TopicWrapper, SpecTopic>();
boolean error = false;
final Zanata... | protected boolean pushToZanata(final DataProviderFactory providerFactory, final ContentSpec contentSpec,
final ContentSpecWrapper contentSpecEntity) {
final Map<TopicWrapper, SpecTopic> topicToSpecTopic = new HashMap<TopicWrapper, SpecTopic>();
boolean error = false;
final Zanata... |
diff --git a/amibe/src/org/jcae/mesh/MeshOEMMViewer3d.java b/amibe/src/org/jcae/mesh/MeshOEMMViewer3d.java
index 1a488114..cc3f3284 100644
--- a/amibe/src/org/jcae/mesh/MeshOEMMViewer3d.java
+++ b/amibe/src/org/jcae/mesh/MeshOEMMViewer3d.java
@@ -1,172 +1,173 @@
/* jCAE stand for Java Computer Aided Engineering. Featu... | true | true | public static void main(String args[])
{
if (args.length < 1)
{
System.out.println("Usage: MeshOEMMViewer3d dir");
System.exit(0);
}
String dir=args[0];
JFrame feFrame=new JFrame("jCAE Demo");
feFrame.setSize(800,600);
feFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
final OEMM o... | public static void main(String args[])
{
if (args.length < 1)
{
System.out.println("Usage: MeshOEMMViewer3d dir");
System.exit(0);
}
String dir=args[0];
JFrame feFrame=new JFrame("jCAE Demo");
feFrame.setSize(800,600);
feFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
final OEMM o... |
diff --git a/bundles/org.eclipse.rap.examples/src/org/eclipse/rap/examples/Infobox.java b/bundles/org.eclipse.rap.examples/src/org/eclipse/rap/examples/Infobox.java
index 19c2278d1..20d88c426 100644
--- a/bundles/org.eclipse.rap.examples/src/org/eclipse/rap/examples/Infobox.java
+++ b/bundles/org.eclipse.rap.examples/s... | true | true | private Composite createInfoboxContentComposite() {
Composite contentComp = new Composite( this, SWT.NONE );
contentComp.setData( RWT.CUSTOM_VARIANT, "infobox" );
GridLayout layout = ExampleUtil.createGridLayoutWithoutMargin( 1, false );
layout.marginHeight = 35;
layout.marginWidth = 35;
layou... | private Composite createInfoboxContentComposite() {
Composite contentComp = new Composite( this, SWT.NONE );
contentComp.setBackgroundMode( SWT.INHERIT_FORCE );
contentComp.setData( RWT.CUSTOM_VARIANT, "infobox" );
GridLayout layout = ExampleUtil.createGridLayoutWithoutMargin( 1, false );
layout.m... |
diff --git a/src/main/java/hudson/scm/SubversionSCM.java b/src/main/java/hudson/scm/SubversionSCM.java
index 6d9e944..6af4c77 100644
--- a/src/main/java/hudson/scm/SubversionSCM.java
+++ b/src/main/java/hudson/scm/SubversionSCM.java
@@ -1,2117 +1,2121 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Mic... | true | true | public boolean pollChanges(AbstractProject project, Launcher launcher,
FilePath workspace, final TaskListener listener) throws IOException,
InterruptedException {
AbstractBuild lastBuild = (AbstractBuild) project.getLastBuild();
if (lastBuild == null) {
listener.g... | public boolean pollChanges(AbstractProject project, Launcher launcher,
FilePath workspace, final TaskListener listener) throws IOException,
InterruptedException {
AbstractBuild lastBuild = (AbstractBuild) project.getLastBuild();
if (lastBuild == null) {
listener.g... |
diff --git a/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskassignments/TaskAssignmentsPopupViewImpl.java b/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskassignments/TaskAssig... | true | true | public void init( TaskAssignmentsPopupPresenter presenter ) {
this.presenter = presenter;
userOrGroupLabel.setText(constants.UserOrGroup());
detailsAccordionLabel.add( new HTMLPanel( constants.Details()) );
delegateButton.setText(constants.Delegate());
usersGroupsControlsLabe... | public void init( TaskAssignmentsPopupPresenter presenter ) {
this.presenter = presenter;
userOrGroupLabel.setText(constants.UserOrGroup());
detailsAccordionLabel.add( new HTMLPanel( constants.Details()) );
delegateButton.setText(constants.Delegate());
usersGroupsControlsLabe... |
diff --git a/com.isencia.passerelle.workbench.model/src/main/java/com/isencia/passerelle/workbench/model/launch/ModelRunner.java b/com.isencia.passerelle.workbench.model/src/main/java/com/isencia/passerelle/workbench/model/launch/ModelRunner.java
index 274aedc..0300db3 100644
--- a/com.isencia.passerelle.workbench.mode... | true | true | public void runModel(final String modelPath, final boolean doSystemExit) throws Exception {
if (!Platform.isRunning()) throw new Exception("ModelRunner is designed to be used with an eclipse application!");
final List<Exception> exceptions = new ArrayList<Exception>(1);
final long start = System.currentTim... | public void runModel(final String modelPath, final boolean doSystemExit) throws Exception {
if (!Platform.isRunning()) throw new Exception("ModelRunner is designed to be used with an eclipse application!");
final List<Exception> exceptions = new ArrayList<Exception>(1);
final long start = System.currentTim... |
diff --git a/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java b/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
index 7ba5f18fb..39977c125 100644
--- a/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
+++ b/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
@@ -1,1... | false | true | public String toString()
{
String globalhex = "";
String branchhex = "";
if (global_id != null)
{
int mask = 0;
for (int i = 0; i < global_id.length; i++)
{
mask = (global_id[i] & 0xFF);
globalhex += Integer.toHexString(mask);
}
}
if (branch_id != null)
{
i... | public String toString()
{
String globalhex = "";
String branchhex = "";
if (global_id != null)
{
int mask = 0;
for (int i = 0; i < global_id.length; i++)
{
mask = (global_id[i] & 0xFF);
if (mask < 16) {
globalhex += "0" + Integer.toHexString(mask)... |
diff --git a/esmska/src/esmska/gui/ConfigFrame.java b/esmska/src/esmska/gui/ConfigFrame.java
index 6e2455b1..147527e9 100644
--- a/esmska/src/esmska/gui/ConfigFrame.java
+++ b/esmska/src/esmska/gui/ConfigFrame.java
@@ -1,445 +1,445 @@
/*
* ConfigFrame.java
*
* Created on 20. červenec 2007, 18:59
*/
package ... | true | true | private void initComponents() {
tabbedPane = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
rememberQueueCheckBox = new javax.swing.JCheckBox();
rememberLayoutCheckBox = new javax.swing.JCheckBox();
jPanel3 = new javax.swing.JPanel();
jLabel4 = new... | private void initComponents() {
tabbedPane = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
rememberQueueCheckBox = new javax.swing.JCheckBox();
rememberLayoutCheckBox = new javax.swing.JCheckBox();
jPanel3 = new javax.swing.JPanel();
jLabel4 = new... |
diff --git a/juanspdf.java b/juanspdf.java
index 3fe6a66..dca538e 100644
--- a/juanspdf.java
+++ b/juanspdf.java
@@ -1,71 +1,72 @@
import java.util.*;
import java.io.*;
public class juanspdf {
public static void main (String[] args)
throws FileNotFoundException {
Scanner console = new Scanner(System.in);
... | false | true | public static void main (String[] args)
throws FileNotFoundException {
Scanner console = new Scanner(System.in);
Scanner input = new Scanner(new File("comptia.txt"));
boolean[] bool = new boolean[208];
String[] answers = new String[208];
String[] guesses = new String[208];
int[] number = new int[208];
... | public static void main (String[] args)
throws FileNotFoundException {
Scanner console = new Scanner(System.in);
Scanner input = new Scanner(new File("comptia.txt"));
boolean[] bool = new boolean[208];
String[] answers = new String[208];
String[] guesses = new String[208];
int[] number = new int[208];
... |
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java
index a15478039..ff0cf8021 100644
--- a/spring-batch-core/src/main/java/org... | true | true | public Collection<StepExecution> handle(StepExecutionSplitter stepExecutionSplitter,
StepExecution masterStepExecution) throws Exception {
Set<FutureTask<StepExecution>> tasks = new HashSet<FutureTask<StepExecution>>(gridSize);
Collection<StepExecution> result = new ArrayList<StepExecution>();
for (final S... | public Collection<StepExecution> handle(StepExecutionSplitter stepExecutionSplitter,
StepExecution masterStepExecution) throws Exception {
Set<FutureTask<StepExecution>> tasks = new HashSet<FutureTask<StepExecution>>(gridSize);
Collection<StepExecution> result = new ArrayList<StepExecution>();
for (final S... |
diff --git a/src/main/java/com/ctb/pilot/chat/service/ChatServlet.java b/src/main/java/com/ctb/pilot/chat/service/ChatServlet.java
index 80e25ba..5ffe48d 100644
--- a/src/main/java/com/ctb/pilot/chat/service/ChatServlet.java
+++ b/src/main/java/com/ctb/pilot/chat/service/ChatServlet.java
@@ -1,74 +1,74 @@
package com.... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String requestURI = req.getRequestURI();
System.out.println("In doGet(), requestURI: " + requestURI);
int rowCount = 100;
List<Message> messages = messageDao.getMessagesWithRowCount(rowCount);
re... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String requestURI = req.getRequestURI();
System.out.println("In doGet(), requestURI: " + requestURI);
int rowCount = 100;
List<Message> messages = messageDao.getMessagesWithRowCount(rowCount);
re... |
diff --git a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/util/IoUtil.java b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/util/IoUtil.java
index f756890cc..6d1ba7791 100644
--- a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/util/IoUtil.java
+++ b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/util/IoUtil.java
@@ ... | true | true | public static void copyWithThread(final InputStream src,
final OutputStream dst) {
new Thread("IoUtil-Copy") {
public void run() {
try {
final byte[] buf = new byte[256];
int n;
while (0 < (n = src.read(buf))) {
dst.write(buf, 0, n);
}
... | public static void copyWithThread(final InputStream src,
final OutputStream dst) {
new Thread("IoUtil-Copy") {
@Override
public void run() {
try {
final byte[] buf = new byte[256];
int n;
while (0 < (n = src.read(buf))) {
dst.write(buf, 0, n);
... |
diff --git a/assets/src/org/ruboto/ScriptLoader.java b/assets/src/org/ruboto/ScriptLoader.java
index fc09409..1ca0b92 100644
--- a/assets/src/org/ruboto/ScriptLoader.java
+++ b/assets/src/org/ruboto/ScriptLoader.java
@@ -1,146 +1,147 @@
package org.ruboto;
import java.io.IOException;
import android.app.ProgressD... | false | true | public static void loadScript(final RubotoComponent component, Object... args) {
try {
if (component.getScriptInfo().getScriptName() != null) {
System.out.println("Looking for Ruby class: " + component.getScriptInfo().getRubyClassName());
Object rubyClass = JRubyA... | public static void loadScript(final RubotoComponent component, Object... args) {
try {
if (component.getScriptInfo().getScriptName() != null) {
System.out.println("Looking for Ruby class: " + component.getScriptInfo().getRubyClassName());
Object rubyClass = JRubyA... |
diff --git a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java b/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java
index 5dc43d7..634b557 100644
--- a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java... | false | true | public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot,
int outputMinSlot, int outputMaxSlot) throws TradeError {
if (fakeInv == null) { throw new TradeError(1, "Invalid inventory",
new NullPointerException()); }
HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<ItemStackMap... | public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot,
int outputMinSlot, int outputMaxSlot) throws TradeError {
if (fakeInv == null) { throw new TradeError(1, "Invalid inventory",
new NullPointerException()); }
HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<ItemStackMap... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java b/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java
index 5e95bad6..ae92670c 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandsp... | true | true | protected void run(Server server, User user, String commandLabel, String[] args) throws Exception
{
if (args.length < 1 || args[0].length() < 2)
{
throw new NotEnoughArgumentsException();
}
final Block target = user.getTarget().getTargetBlock();
if (target.getType() != Material.MOB_SPAWNER)
{
throw... | protected void run(Server server, User user, String commandLabel, String[] args) throws Exception
{
if (args.length < 1 || args[0].length() < 2)
{
throw new NotEnoughArgumentsException();
}
final Block target = user.getTarget().getTargetBlock();
if (target.getType() != Material.MOB_SPAWNER)
{
throw... |
diff --git a/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java b/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
index bca20258..7651a8e4 100644
--- a/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
+++ b/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
@@ -1,3571 +1,3573 @@
/*
* Lic... | true | true | protected void renderTokens(Graphics2D g, List<Token> tokenList, PlayerView view) {
Graphics2D clippedG = g;
timer.start("createClip");
if (!view.isGMView() && visibleScreenArea != null && !tokenList.isEmpty() && tokenList.get(0).isToken()) {
clippedG = (Graphics2D) g.create();
Area visibleArea = new Are... | protected void renderTokens(Graphics2D g, List<Token> tokenList, PlayerView view) {
Graphics2D clippedG = g;
timer.start("createClip");
if (!view.isGMView() && visibleScreenArea != null && !tokenList.isEmpty() && tokenList.get(0).isToken()) {
clippedG = (Graphics2D) g.create();
Area visibleArea = new Are... |
diff --git a/gwiki/src/main/java/de/micromata/genome/gwiki/page/impl/wiki/macros/GWikiPageTreeMacro.java b/gwiki/src/main/java/de/micromata/genome/gwiki/page/impl/wiki/macros/GWikiPageTreeMacro.java
index 9f02b213..bf56c98f 100644
--- a/gwiki/src/main/java/de/micromata/genome/gwiki/page/impl/wiki/macros/GWikiPageTreeMa... | true | true | public boolean renderImpl(final GWikiContext ctx, MacroAttributes attrs)
{
ctx.append("<div id='filechooser' style='margin-top: 20px; font-family: verdana; font-size: 10px;");
if (StringUtils.isNotEmpty(width)) {
ctx.append("width: " + width + "; ");
}
if (StringUtils.isNotBlank(height)) {
... | public boolean renderImpl(final GWikiContext ctx, MacroAttributes attrs)
{
ctx.append("<div id='filechooser' style='margin-top: 20px; font-family: verdana; font-size: 10px;");
if (StringUtils.isNotEmpty(width)) {
ctx.append("width: " + width + "; ");
}
if (StringUtils.isNotBlank(height)) {
... |
diff --git a/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java b/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java
index 1f66a063..e23a5a63 100644
--- a/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java
+++ b/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.ja... | true | true | protected RawTypeSet.Mode canBeType(RawTypeSet parent) {
// if element substitution can occur, no way it can be mapped to a list of types
if(decl.getSubstitutables().size()>1)
return RawTypeSet.Mode.MUST_BE_REFERENCE;
// BIXSubstitutable also simulates this ef... | protected RawTypeSet.Mode canBeType(RawTypeSet parent) {
// if element substitution can occur, no way it can be mapped to a list of types
if(decl.getSubstitutables().size()>1)
return RawTypeSet.Mode.MUST_BE_REFERENCE;
// BIXSubstitutable also simulates this ef... |
diff --git a/szoftlab4/src/hu/miracle/workers/Main.java b/szoftlab4/src/hu/miracle/workers/Main.java
index 7fab0cc..93284e1 100644
--- a/szoftlab4/src/hu/miracle/workers/Main.java
+++ b/szoftlab4/src/hu/miracle/workers/Main.java
@@ -1,152 +1,151 @@
package hu.miracle.workers;
import java.awt.Point;
import java.io.... | true | true | public static void main(String[] args) {
System.out.println(Main.class.getCanonicalName() + ".main()");
scene = new Scene();
game = new Game(scene);
timer = new Timer(game, 1000);
game.setTimer(timer);
timer.start();
//timer.stopTimer();
while (true) {
int menuresult = showMenu();
switch (... | public static void main(String[] args) {
System.out.println(Main.class.getCanonicalName() + ".main()");
scene = new Scene();
game = new Game(scene);
timer = new Timer(game, 1000);
game.setTimer(timer);
timer.start();
while (true) {
int menuresult = showMenu();
switch (menuresult) {
case 1... |
diff --git a/contentconnector/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/indexer/index/LuceneIndexUpdateChecker.java b/contentconnector/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/indexer/index/LuceneIndexUpdateChecker.java
index 93f2bfe8..ba0f6a6f 100644
--- a/contentconnector/contentc... | false | true | protected final boolean checkUpToDate(final String identifyer, final Object timestamp, final String timestampattribute,
final Resolvable object) {
String timestampString;
if (timestamp == null) {
return false;
} else {
timestampString = timestamp.toString();
}
if ("".equals(timestampString)) {
re... | protected final boolean checkUpToDate(final String identifyer, final Object timestamp, final String timestampattribute,
final Resolvable object) {
String timestampString;
if (timestamp == null) {
return false;
} else {
timestampString = timestamp.toString();
}
if ("".equals(timestampString)) {
re... |
diff --git a/src/main/java/org/generationcp/ibpworkbench/util/DatasetExporter.java b/src/main/java/org/generationcp/ibpworkbench/util/DatasetExporter.java
index 70e1eb2..828a988 100644
--- a/src/main/java/org/generationcp/ibpworkbench/util/DatasetExporter.java
+++ b/src/main/java/org/generationcp/ibpworkbench/util/Data... | false | true | public FileOutputStream exportToFieldBookExcel(String filename) throws DatasetExporterException {
//create workbook
Workbook workbook = new HSSFWorkbook();
CellStyle cellStyle = workbook.createCellStyle();
CellStyle cellStyleForObservationSheet = workbook.createCellStyle();
... | public FileOutputStream exportToFieldBookExcel(String filename) throws DatasetExporterException {
//create workbook
Workbook workbook = new HSSFWorkbook();
CellStyle cellStyle = workbook.createCellStyle();
CellStyle cellStyleForObservationSheet = workbook.createCellStyle();
... |
diff --git a/src/java/com/trekker/controller/EditMedia.java b/src/java/com/trekker/controller/EditMedia.java
index f0ff368..6e7d386 100644
--- a/src/java/com/trekker/controller/EditMedia.java
+++ b/src/java/com/trekker/controller/EditMedia.java
@@ -1,86 +1,87 @@
package com.trekker.controller;
import com.trekker.mo... | true | true | public void delete() throws IOException {
for(Integer id : checked.keySet()) {
if (checked.get(id)) {
Media mediaToDelete = mediaService.find(id);
trip.getMediaCollection().remove(mediaToDelete);
mediaService.delete(mediaToDelete);
... | public void delete() throws IOException {
for(Integer id : checked.keySet()) {
if (checked.get(id)) {
Media mediaToDelete = mediaService.find(id);
trip.getMediaCollection().remove(mediaToDelete);
mediaService.delete(mediaToDelete);
... |
diff --git a/src/ServerThread.java b/src/ServerThread.java
index 048a634..984e44a 100644
--- a/src/ServerThread.java
+++ b/src/ServerThread.java
@@ -1,195 +1,198 @@
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
... | false | true | public void run()
{
//check for message client read/append
// if read, return values
// if append start 2pc protocol then paxos protocol
ServerMessage msg;
try {
msg = (ServerMessage) inputStream.readObject();
System.out.println("RECIEVED:" + msg);
swit... | public void run()
{
//check for message client read/append
// if read, return values
// if append start 2pc protocol then paxos protocol
ServerMessage msg;
try {
msg = (ServerMessage) inputStream.readObject();
System.out.println("RECIEVED:" + msg);
swit... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java
index 1d8a9683f..54328cb97 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/lis... | false | true | public void onButtonInteract(PlayerInteractEvent event) {
final Player player = event.getPlayer();
Block block = event.getClickedBlock();
if (block != null) {
Material blockType = block.getType();
Action action = event.getAction();
if (action == Action.RIG... | public void onButtonInteract(PlayerInteractEvent event) {
final Player player = event.getPlayer();
Block block = event.getClickedBlock();
if (block != null) {
Material blockType = block.getType();
Action action = event.getAction();
if (action == Action.RIG... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java
index bfe3bdbc..89b85679 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableRe... | true | true | static IDecoratableResource[] createDecoratableResources(
final IResource[] resources) throws IOException {
// Use first (available) resource to get repository mapping
int i = 0;
while (resources[i] == null) {
i++;
if (i >= resources.length)
// Array only contains nulls
return null;
}
final ... | static IDecoratableResource[] createDecoratableResources(
final IResource[] resources) throws IOException {
// Use first (available) resource to get repository mapping
int i = 0;
while (resources[i] == null) {
i++;
if (i >= resources.length)
// Array only contains nulls
return null;
}
final ... |
diff --git a/Graph.java b/Graph.java
index cb2ffc9..b5b1b9b 100644
--- a/Graph.java
+++ b/Graph.java
@@ -1,75 +1,76 @@
package project;
import java.util.*;
public class Graph {
private boolean array[][];
private int size;
protected Graph(int s) {
size = s*s; // s is the 'side length' of the graph, which... | true | true | public boolean search(int n1, int n2) {
Queue<Integer> q = new LinkedList<Integer>();
int t;
int c;
int count = 0;
int visited[] = new int[size];
boolean isV;
q.add(n1);
visited[count] = n1;
count++;
while (q.size() > 0) { //BFS
t = q.remove();
if (t==n2) {
return true;
}
c = 0;
... | public boolean search(int n1, int n2) {
Queue<Integer> q = new LinkedList<Integer>();
int t;
int c;
int count = 0;
int visited[] = new int[size];
boolean isV;
q.add(n1);
visited[count] = n1;
count++;
while (q.size() > 0) { //BFS
t = q.remove();
if (t==n2) {
return true;
}
c = 0;
... |
diff --git a/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand.java b/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand.java
index 5bb7db5f..2faf0409 100644
--- a/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand... | true | true | protected Object doExecute() throws Exception {
// check if the group exists
Group group = groupManager.findGroupByName(groupName);
if (group == null) {
System.err.println("Cluster group " + groupName + " doesn't exist");
return null;
}
// check if th... | protected Object doExecute() throws Exception {
// check if the group exists
Group group = groupManager.findGroupByName(groupName);
if (group == null) {
System.err.println("Cluster group " + groupName + " doesn't exist");
return null;
}
// check if th... |
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/ArtifactDescriptor.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/provisional/p2/artifact/repository/ArtifactDescriptor.java
index 3ff85074a..33... | false | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ArtifactDescriptor other = (ArtifactDescriptor) obj;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
... | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ArtifactDescriptor other = (ArtifactDescriptor) obj;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
... |
diff --git a/base/src/edu/berkeley/cs/cs162/ChatServer.java b/base/src/edu/berkeley/cs/cs162/ChatServer.java
index 2e72dc7..6960602 100644
--- a/base/src/edu/berkeley/cs/cs162/ChatServer.java
+++ b/base/src/edu/berkeley/cs/cs162/ChatServer.java
@@ -1,663 +1,664 @@
package edu.berkeley.cs.cs162;
import java.io.Buf... | true | true | public Handler call() throws Exception {
TransportObject recObject = null;
while(recObject == null) {
try {
recObject = (TransportObject) received.readObject();
} catch (EOFException e) {
//System.err.println("user connection dropped/finished");
return null;
} catch (So... | public Handler call() throws Exception {
TransportObject recObject = null;
while(recObject == null) {
try {
recObject = (TransportObject) received.readObject();
} catch (EOFException e) {
//System.err.println("user connection dropped/finished");
return null;
} catch (So... |
diff --git a/Chat/src/Communications/UDPReceiver.java b/Chat/src/Communications/UDPReceiver.java
index 9a05340..eea61f6 100644
--- a/Chat/src/Communications/UDPReceiver.java
+++ b/Chat/src/Communications/UDPReceiver.java
@@ -1,81 +1,84 @@
package Communications;
import java.io.*;
import java.net.SocketException;
... | false | true | public Message read(){
if (!needsMore) {
if (queue.size() >= size) {
System.out.println("getting first");
current = new byte[size];
for (int i = 0; i < size; i++) {
current[i] = queue.poll();
}
moreNeeded=parser.parse(current);
if(queue.size()>=moreNeeded){
System.out.println("Se... | public Message read(){
if (!needsMore) {
if (queue.size() >= size) {
System.out.println(queue.size());
System.out.println("getting first");
current = new byte[size];
for (int i = 0; i < size; i++) {
current[i] = queue.poll();
}
System.out.println(queue.size());
moreNeeded=parser.p... |
diff --git a/Chess/src/com/nanu/chess/gui/BoardPanel.java b/Chess/src/com/nanu/chess/gui/BoardPanel.java
index be0349e..ab330de 100644
--- a/Chess/src/com/nanu/chess/gui/BoardPanel.java
+++ b/Chess/src/com/nanu/chess/gui/BoardPanel.java
@@ -1,105 +1,106 @@
package com.nanu.chess.gui;
import java.awt.Graphics;
impo... | true | true | public String getMove() {
boolean validMove = false;
ClickListener click = new ClickListener();
this.addMouseListener(click);
Square start = null, end = null;
while( !validMove ) {
synchronized(lock) {
try {
lock.wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
... | public String getMove() {
boolean validMove = false;
ClickListener click = new ClickListener();
this.addMouseListener(click);
Square start = null, end = null;
while( !validMove ) {
synchronized(lock) {
try {
lock.wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
... |
diff --git a/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java b/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
index b82cffa..be42c1a 100644
--- a/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
+++ b/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
@@ -1,1... | false | true | protected HaeinsaTransaction getTransaction(byte[] tableName, byte[] row) throws IOException {
TRowLock startUnstableRowLock = getUnstableRowLock(tableName, row);
if (startUnstableRowLock == null) {
// There is no on-going transaction on row.
return null;
}
TRowLock primaryRowLock = null;
TRowKey pri... | protected HaeinsaTransaction getTransaction(byte[] tableName, byte[] row) throws IOException {
TRowLock unstableRowLock = getUnstableRowLock(tableName, row);
if (unstableRowLock == null) {
// There is no on-going transaction on row.
return null;
}
TRowLock primaryRowLock = null;
TRowKey primaryRowKey... |
diff --git a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java
index bd370f79..f05f309a 100644
--- a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java
+++ b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/A... | false | true | public void bindCommandList(final JList<Alias> commandList) {
final GenericListModel<Alias> commandModel = new GenericListModel<>();
final VetoableListSelectionModel selectionModel = new VetoableListSelectionModel();
commandList.setCellRenderer(new PropertyListCellRenderer<>(commandList.getC... | public void bindCommandList(final JList<Alias> commandList) {
final GenericListModel<Alias> commandModel = new GenericListModel<>();
final VetoableListSelectionModel selectionModel = new VetoableListSelectionModel();
commandList.setCellRenderer(new PropertyListCellRenderer<>(commandList.getC... |
diff --git a/cpa/src/main/java/org/castor/cpa/persistence/sql/driver/SQLServerQueryExpression.java b/cpa/src/main/java/org/castor/cpa/persistence/sql/driver/SQLServerQueryExpression.java
index 412ba80f..57e85920 100644
--- a/cpa/src/main/java/org/castor/cpa/persistence/sql/driver/SQLServerQueryExpression.java
+++ b/cpa... | true | true | public String getStatement(final boolean lock) {
StringBuffer sql;
boolean first;
sql = new StringBuffer();
sql.append(JDBCSyntax.SELECT);
if (_distinct) {
sql.append(JDBCSyntax.DISTINCT);
}
if (_limit != null) {
if (!_limit.equals(""... | public String getStatement(final boolean lock) {
StringBuffer sql;
boolean first;
sql = new StringBuffer();
sql.append(JDBCSyntax.SELECT);
if (_distinct) {
sql.append(JDBCSyntax.DISTINCT);
}
if (_limit != null) {
if (!_limit.equals(""... |
diff --git a/src/de/kumpelblase2/dragonslair/commanddialogs/trigger/TriggerDeleteDialog.java b/src/de/kumpelblase2/dragonslair/commanddialogs/trigger/TriggerDeleteDialog.java
index 642effa..2bbabc5 100755
--- a/src/de/kumpelblase2/dragonslair/commanddialogs/trigger/TriggerDeleteDialog.java
+++ b/src/de/kumpelblase2/dra... | true | true | protected Prompt acceptValidatedInput(final ConversationContext arg0, final String arg1)
{
if(arg1.equals("cancel"))
{
arg0.setSessionData("trigger_id", null);
return new TriggerManageDialog();
}
if(arg0.getSessionData("trigger_id") == null)
{
if(arg1.equals("back"))
return new TriggerManageDia... | protected Prompt acceptValidatedInput(final ConversationContext arg0, final String arg1)
{
if(arg1.equals("cancel"))
{
arg0.setSessionData("trigger_id", null);
return new TriggerManageDialog();
}
if(arg0.getSessionData("trigger_id") == null)
{
if(arg1.equals("back"))
return new TriggerManageDia... |
diff --git a/src/org/newdawn/slick/geom/Vector2f.java b/src/org/newdawn/slick/geom/Vector2f.java
index ab84b5f..e038734 100644
--- a/src/org/newdawn/slick/geom/Vector2f.java
+++ b/src/org/newdawn/slick/geom/Vector2f.java
@@ -1,346 +1,346 @@
package org.newdawn.slick.geom;
import org.newdawn.slick.util.FastTrig;
... | true | true | public void setTheta(double theta) {
// Next lines are to prevent numbers like -1.8369701E-16
// when working with negative numbers
if ((theta < -360) || (theta > 360)) {
theta = theta % 360;
}
if (theta < 0) {
theta = 360 + theta;
}
double oldTheta = getTheta();
if ((theta < -360) || (theta > 36... | public void setTheta(double theta) {
// Next lines are to prevent numbers like -1.8369701E-16
// when working with negative numbers
if ((theta < -360) || (theta > 360)) {
theta = theta % 360;
}
if (theta < 0) {
theta = 360 + theta;
}
double oldTheta = getTheta();
if ((theta < -360) || (theta > 36... |
diff --git a/src/main/java/com/cnaude/purpleirc/Commands/Nick.java b/src/main/java/com/cnaude/purpleirc/Commands/Nick.java
index 5006800..3eb833d 100644
--- a/src/main/java/com/cnaude/purpleirc/Commands/Nick.java
+++ b/src/main/java/com/cnaude/purpleirc/Commands/Nick.java
@@ -1,46 +1,46 @@
/*
* To change this templa... | true | true | public void dispatch(CommandSender sender, String[] args) {
if (args.length == 3) {
String bot = args[1];
String nick = args[2];
if (plugin.ircBots.containsKey(bot)) {
if (plugin.ircBots.containsKey(nick)) {
sender.sendMessage(ChatColor... | public void dispatch(CommandSender sender, String[] args) {
if (args.length == 3) {
String bot = args[1];
String nick = args[2];
if (plugin.ircBots.containsKey(bot)) {
if (plugin.ircBots.containsKey(nick)) {
sender.sendMessage(ChatColor... |
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteRemoteDelete.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteRemoteDelete.java
index a96ba698a..321160cb9 100644
--- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteRemoteDele... | false | true | protected SVNCommitInfo run() throws SVNException {
if (getOperation().getTargets().size() == 0) {
return SVNCommitInfo.NULL;
}
SVNHashMap reposInfo = new SVNHashMap();
SVNHashMap relPathInfo = new SVNHashMap();
for (SvnTarget target : getOperation().getTargets())... | protected SVNCommitInfo run() throws SVNException {
if (getOperation().getTargets().size() == 0) {
return SVNCommitInfo.NULL;
}
SVNHashMap reposInfo = new SVNHashMap();
SVNHashMap relPathInfo = new SVNHashMap();
for (SvnTarget target : getOperation().getTargets())... |
diff --git a/src/org/clapper/curn/output/FileOutputHandler.java b/src/org/clapper/curn/output/FileOutputHandler.java
index 740125b..88633c9 100644
--- a/src/org/clapper/curn/output/FileOutputHandler.java
+++ b/src/org/clapper/curn/output/FileOutputHandler.java
@@ -1,545 +1,545 @@
/*------------------------------------... | true | true | public final void init (ConfigFile config,
ConfiguredOutputHandler cfgHandler)
throws ConfigurationException,
CurnException
{
String saveAs = null;
String sectionName = null;
this.config = config;
sectionName =... | public final void init (ConfigFile config,
ConfiguredOutputHandler cfgHandler)
throws ConfigurationException,
CurnException
{
String saveAs = null;
String sectionName = null;
this.config = config;
sectionName =... |
diff --git a/src/main/java/org/nuxeo/ecm/webapp/diff/PropertyDiffDisplayHelperBean.java b/src/main/java/org/nuxeo/ecm/webapp/diff/PropertyDiffDisplayHelperBean.java
index d2b07d3..b4665d1 100644
--- a/src/main/java/org/nuxeo/ecm/webapp/diff/PropertyDiffDisplayHelperBean.java
+++ b/src/main/java/org/nuxeo/ecm/webapp/dif... | true | true | public String getPropertyDisplay(Serializable propertyValue,
PropertyDiff propertyDiff) {
String propertyDisplay;
String propertyType = propertyDiff.getPropertyType();
// Boolean
if (PropertyType.BOOLEAN.equals(propertyType)) {
propertyDisplay = resourcesAc... | public String getPropertyDisplay(Serializable propertyValue,
PropertyDiff propertyDiff) {
String propertyDisplay;
// TODO: propertyDiff should never be null, see the 'files' schema case.
String propertyType;
if (propertyDiff == null) {
propertyType = Propert... |
diff --git a/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/AcceleoProjectUnzipper.java b/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/AcceleoProjectUnzipper.java
index f10c0e3..6593e45 100644
--- a/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/Acc... | true | true | public Object execute(ExecutionEvent event) throws ExecutionException {
String parameter = event.getParameter("org.eclipse.acceleo.tutorial.projectUnzipperPath");
String path = "invalid";
if ("platform:/plugin/org.eclipse.acceleo.tutorial/step-1/".equals(parameter)) {
path = "step-1";
} else if ("platform:... | public Object execute(ExecutionEvent event) throws ExecutionException {
String parameter = event.getParameter("org.eclipse.acceleo.tutorial.projectUnzipperPath");
String path = "invalid";
if ("platform:/plugin/org.eclipse.acceleo.tutorial/step-1/".equals(parameter)) {
path = "step-1";
} else if ("platform:... |
diff --git a/library/src/org/wordpress/passcodelock/DefaultAppLock.java b/library/src/org/wordpress/passcodelock/DefaultAppLock.java
index 998431f..cca9a96 100644
--- a/library/src/org/wordpress/passcodelock/DefaultAppLock.java
+++ b/library/src/org/wordpress/passcodelock/DefaultAppLock.java
@@ -1,158 +1,159 @@
packag... | true | true | private boolean mustShowUnlockSceen() {
if( isPasswordLocked() == false)
return false;
if( lostFocusDate == null )
return true; //first startup or when we forced to show the password
int currentTimeOut = lockTimeOut; //get a reference to the current... | private boolean mustShowUnlockSceen() {
if( isPasswordLocked() == false)
return false;
if( lostFocusDate == null )
return true; //first startup or when we forced to show the password
int currentTimeOut = lockTimeOut; //get a reference to the current... |
diff --git a/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.java b/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.java
index 180b6c23..ec52e118 100644
--- a/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.ja... | true | true | public Integer getID() throws SeException{
// TODO Auto-generated method stub
return null;
}
| public SeObjectId getID() throws SeException{
// TODO Auto-generated method stub
return null;
}
|
diff --git a/stanford-sw/src/edu/stanford/Item.java b/stanford-sw/src/edu/stanford/Item.java
index c498439..f554f92 100644
--- a/stanford-sw/src/edu/stanford/Item.java
+++ b/stanford-sw/src/edu/stanford/Item.java
@@ -1,517 +1,517 @@
package edu.stanford;
import java.util.regex.Pattern;
import org.marc4j.marc.Dat... | true | true | public Item(DataField f999, String recId) {
// set all the immutable variables
this.recId = recId;
barcode = MarcUtils.getSubfieldTrimmed(f999, 'i');
currLoc = MarcUtils.getSubfieldTrimmed(f999, 'k');
homeLoc = MarcUtils.getSubfieldTrimmed(f999, 'l');
library = MarcUtils.getSubfieldTrimmed(f999, 'm');
it... | public Item(DataField f999, String recId) {
// set all the immutable variables
this.recId = recId;
barcode = MarcUtils.getSubfieldTrimmed(f999, 'i');
currLoc = MarcUtils.getSubfieldTrimmed(f999, 'k');
homeLoc = MarcUtils.getSubfieldTrimmed(f999, 'l');
library = MarcUtils.getSubfieldTrimmed(f999, 'm');
it... |
diff --git a/components/EJB/src/main/java/org/dejava/component/ejb/businessrule/AbstractGenericEntityBusinessRuleSet.java b/components/EJB/src/main/java/org/dejava/component/ejb/businessrule/AbstractGenericEntityBusinessRuleSet.java
index c6ff5c5af..dc0b02538 100644
--- a/components/EJB/src/main/java/org/dejava/compone... | true | true | private Set<ConstraintViolation<Entity>> validateNoExceptions(final Entity entity,
final Object... context) {
// If the entity is not null.
if (entity != null) {
// Returns an empty set of violations. FIXME Think about.
return new HashSet<>();
}
// If the entity is not null.
else {
// Validates t... | private Set<ConstraintViolation<Entity>> validateNoExceptions(final Entity entity,
final Object... context) {
// If the entity is null.
if (entity == null) {
// Returns an empty set of violations. FIXME Think about.
return new HashSet<>();
}
// If the entity is not null.
else {
// Validates the c... |
diff --git a/src/org/opensolaris/opengrok/analysis/TextAnalyzer.java b/src/org/opensolaris/opengrok/analysis/TextAnalyzer.java
index 63fe7af..a946cf3 100644
--- a/src/org/opensolaris/opengrok/analysis/TextAnalyzer.java
+++ b/src/org/opensolaris/opengrok/analysis/TextAnalyzer.java
@@ -1,64 +1,64 @@
/*
* CDDL HEADER S... | true | true | public final void analyze(Document doc, InputStream in) throws IOException {
String charset = null;
in.mark(3);
byte[] head = new byte[3];
int br = in.read(head, 0, 3);
if (br >= 2 &&
(head[0] == (byte)0xFE && head[1] == (byte)0xFF) ||
(head[0... | public final void analyze(Document doc, InputStream in) throws IOException {
String charset = null;
in.mark(3);
byte[] head = new byte[3];
int br = in.read(head, 0, 3);
if (br >= 2 &&
(head[0] == (byte)0xFE && head[1] == (byte)0xFF) ||
(head[0... |
diff --git a/kres/eu.iksproject.kres.semion.refactorer/src/test/java/eu/iksproject/kres/semion/refactorer/SemionRefactoringTest.java b/kres/eu.iksproject.kres.semion.refactorer/src/test/java/eu/iksproject/kres/semion/refactorer/SemionRefactoringTest.java
index 77b6b2ce2..8ec4983d9 100644
--- a/kres/eu.iksproject.kres.s... | false | true | public static void setup(){
recipeIRI = IRI
.create("http://kres.iks-project.eu/ontology/meta/rmi_config.owl#MyTestRecipe");
InputStream ontologyStream = SemionRefactoringTest.class
.getResourceAsStream("/META-INF/test/testKReSOnt.owl");
InputStream recipeStream = SemionRefactoringTest.class
.g... | public static void setup(){
recipeIRI = IRI
.create("http://kres.iks-project.eu/ontology/meta/rmi_config.owl#MyTestRecipe");
InputStream ontologyStream = SemionRefactoringTest.class
.getResourceAsStream("/META-INF/test/testKReSOnt.owl");
InputStream recipeStream = SemionRefactoringTest.class
.g... |
diff --git a/src/org/eclipse/jface/util/Policy.java b/src/org/eclipse/jface/util/Policy.java
index af43f038..762e34b3 100644
--- a/src/org/eclipse/jface/util/Policy.java
+++ b/src/org/eclipse/jface/util/Policy.java
@@ -1,242 +1,239 @@
/*******************************************************************************
*... | true | true | private static ILogDialog getJFaceLogDialog() {
return new ILogDialog() {
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.util.ILogger#log(org.eclipse.core.runtime.IStatus)
*/
public void log(Shell parent, String title, IStatus status) {
MessageDialog dialog = new MessageDialog(
parent... | private static ILogDialog getJFaceLogDialog() {
return new ILogDialog() {
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.util.ILogger#log(org.eclipse.core.runtime.IStatus)
*/
public void log(Shell parent, String title, IStatus status) {
int dialogConstant = MessageDialog.ERROR;
if (stat... |
diff --git a/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java b/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java
index b6d62b010..9ea3c3f87 100644
--- a/build/maven/javadoc/src/test/java/org/geotools/maven/taglet/SourceTest.java
+++ b/build/maven/javadoc/src/test/ja... | false | true | public void testCurrentTag() {
Source s = new Source();
Matcher m;
String tag, url, group, category, module;
tag = "$URL$";
m = s.findURL.matcher(tag);
assertTrue(m.matches());
// Try to match the URL provided by SVN.
url = m.group(1).trim();
... | public void testCurrentTag() {
/* See http://jira.codehaus.org/browse/GEOT-1812 for a patch about this issue. --adrian */
/* Note the Source file will have to change also since .../gt/... no longer exists. */
/*
Source s = new Source();
Matcher m;
String tag, url, group, category, modul... |
diff --git a/src/java/org/deuce/transform/asm/AtomicMethod.java b/src/java/org/deuce/transform/asm/AtomicMethod.java
index c7f2beb..f0f4512 100644
--- a/src/java/org/deuce/transform/asm/AtomicMethod.java
+++ b/src/java/org/deuce/transform/asm/AtomicMethod.java
@@ -1,266 +1,265 @@
package org.deuce.transform.asm;
im... | false | true | public void visitCode() {
final int indexIndex = variablesSize; // i
final int contextIndex = indexIndex + 1; // context
final int resultIndex = returnReolver == null ? contextIndex : contextIndex + 1;
final int throwableIndex = resultIndex + (returnReolver == null ? 0 : returnReolver.extendLocals()) + 1;
... | public void visitCode() {
final int indexIndex = variablesSize; // i
final int contextIndex = indexIndex + 1; // context
final int resultIndex = returnReolver == null ? contextIndex : contextIndex + 1;
final int throwableIndex = resultIndex + (returnReolver == null ? 0 : returnReolver.extendLocals()) + 1;
... |
diff --git a/android/src/com/google/zxing/client/android/PreferencesFragment.java b/android/src/com/google/zxing/client/android/PreferencesFragment.java
index 95b387bc..d934edb9 100644
--- a/android/src/com/google/zxing/client/android/PreferencesFragment.java
+++ b/android/src/com/google/zxing/client/android/Preference... | true | true | private boolean isValid(Object newValue) {
// Allow empty/null value
if (newValue == null) {
return true;
}
String valueString = newValue.toString();
if (valueString.isEmpty()) {
return true;
}
// Before validating, remove custom placeholders, which will not... | private boolean isValid(Object newValue) {
// Allow empty/null value
if (newValue == null) {
return true;
}
String valueString = newValue.toString();
if (valueString.isEmpty()) {
return true;
}
// Before validating, remove custom placeholders, which will not... |
diff --git a/src/org/nutz/ioc/loader/combo/ComboIocLoader.java b/src/org/nutz/ioc/loader/combo/ComboIocLoader.java
index 86d0748c0..619a84540 100644
--- a/src/org/nutz/ioc/loader/combo/ComboIocLoader.java
+++ b/src/org/nutz/ioc/loader/combo/ComboIocLoader.java
@@ -1,148 +1,152 @@
package org.nutz.ioc.loader.combo;
... | true | true | public ComboIocLoader(String... args) throws ClassNotFoundException {
ArrayList<String> argsList = null;
String currentClassName = null;
for (String str : args) {
if (str.length() > 0 && str.charAt(0) == '*') {
if (argsList != null)
createIocLo... | public ComboIocLoader(String... args) throws ClassNotFoundException {
ArrayList<String> argsList = null;
String currentClassName = null;
for (String str : args) {
if (str.length() > 0 && str.charAt(0) == '*') {
if (argsList != null)
createIocLo... |
diff --git a/ModJam.java b/ModJam.java
index 856a9bb..36c038c 100644
--- a/ModJam.java
+++ b/ModJam.java
@@ -1,305 +1,305 @@
package modJam;
import java.util.logging.Level;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumArmorMaterial;
import net.... | true | true | public void addAllCrafting(){
for(int i = 0; i < 15; i++){
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(woodChair, 1, i), new Object[]{
"PXX", "PPP", "PXP", Character.valueOf('P'), Block.planks, Character.valueOf('X'), "ingotAwesome" + awesomeColors[i]
}));
Craftin... | public void addAllCrafting(){
for(int i = 0; i < 15; i++){
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(woodChair, 1, i), new Object[]{
"PXX", "PPP", "PXP", Character.valueOf('P'), Block.planks, Character.valueOf('X'), "ingotAwesome" + awesomeColors[i]
}));
Craftin... |
diff --git a/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java b/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
index 8d996c08..8ba67652 100644
--- a/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
+++ b/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCach... | false | true | public static void cachePresets(Collection<TaggingPreset> presets) {
for (final TaggingPreset p : presets) {
for (TaggingPreset.Item item : p.data) {
if (item instanceof TaggingPreset.Check) {
TaggingPreset.Check ch = (TaggingPreset.Check) item;
... | public static void cachePresets(Collection<TaggingPreset> presets) {
for (final TaggingPreset p : presets) {
for (TaggingPreset.Item item : p.data) {
if (item instanceof TaggingPreset.Check) {
TaggingPreset.Check ch = (TaggingPreset.Check) item;
... |
diff --git a/src/org/pentaho/agilebi/pdi/modeler/AbstractMetaDataModelNode.java b/src/org/pentaho/agilebi/pdi/modeler/AbstractMetaDataModelNode.java
index 773e85b..b0b5812 100644
--- a/src/org/pentaho/agilebi/pdi/modeler/AbstractMetaDataModelNode.java
+++ b/src/org/pentaho/agilebi/pdi/modeler/AbstractMetaDataModelNode.... | false | true | public void validateNode() {
String prevMessages = getValidationMessagesString();
validate();
this.firePropertyChange("valid", null, valid);
this.firePropertyChange("validationMessagesString", prevMessages, getValidationMessagesString());
if (valid) {
setImage(getValidImage());
} else {
... | public void validateNode() {
boolean prevValid = valid;
String prevMessages = getValidationMessagesString();
validate();
this.firePropertyChange("valid", prevValid, valid);
this.firePropertyChange("validationMessagesString", prevMessages, getValidationMessagesString());
if (valid) {
setI... |
diff --git a/test/functional/test/java/lang/ClassTest.java b/test/functional/test/java/lang/ClassTest.java
index fa22849f..998c98bd 100644
--- a/test/functional/test/java/lang/ClassTest.java
+++ b/test/functional/test/java/lang/ClassTest.java
@@ -1,119 +1,119 @@
package test.java.lang;
import jvm.TestCase;
impor... | true | true | public static void testGetAnnotation() {
Tag tag = TaggedClass.class.getAnnotation(Tag.class);
assertEquals(Byte.MAX_VALUE, tag.byteValue());
assertEquals(Character.MAX_VALUE, tag.charValue());
assertEquals(Short.MAX_VALUE, tag.shortValue());
assertEquals(Integer.MAX_VALUE, tag.intValue());
a... | public static void testGetAnnotation() {
Tag tag = TaggedClass.class.getAnnotation(Tag.class);
assertEquals(Byte.MAX_VALUE, tag.byteValue());
assertEquals(Character.MAX_VALUE, tag.charValue());
assertEquals(Short.MAX_VALUE, tag.shortValue());
assertEquals(Integer.MAX_VALUE, tag.intValue());
a... |
diff --git a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java b/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
index 639c6537e..1247f4ff7 100644
--- a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
+++ b/srcj/com/sun/electric/tool/user/tecEditWizard/Tec... | false | true | public void dumpXMLFile(String fileName)
throws IOException
{
Xml.Technology t = new Xml.Technology();
t.techName = getTechName();
t.shortTechName = getTechName();
t.description = getTechDescription();
t.minNumMetals = t.maxNumMetals = t.defaultNumMetals = getNum... | public void dumpXMLFile(String fileName)
throws IOException
{
Xml.Technology t = new Xml.Technology();
t.techName = getTechName();
t.shortTechName = getTechName();
t.description = getTechDescription();
t.minNumMetals = t.maxNumMetals = t.defaultNumMetals = getNum... |
diff --git a/org.iucn.sis.client/src/org/iucn/sis/client/panels/workingsets/WorkingSetAddAssessmentsPanel.java b/org.iucn.sis.client/src/org/iucn/sis/client/panels/workingsets/WorkingSetAddAssessmentsPanel.java
index 34584c7d..a6c4ecec 100644
--- a/org.iucn.sis.client/src/org/iucn/sis/client/panels/workingsets/WorkingS... | false | true | private void build() {
RowLayout layout = new RowLayout();
// layout.setSpacing(10);
// layout.setMargin(6);
instructions = new HTML();
add = new Button("Create Assessments", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
if (addToSelected.getV... | private void build() {
RowLayout layout = new RowLayout();
instructions = new HTML();
add = new Button("Create Assessments", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
if (addToSelected.getValue()){
workingSetTaxaPanel.setSaveListener(new ... |
diff --git a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
index 08adeb60d..a84e8a367 100644
--- a/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
+++ b/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java
@@ -1,272 +1,275 @@
/*
* Copyright 2... | false | true | public static native XMLHttpRequest create() /*-{
if ($wnd.XMLHttpRequest) {
return new XMLHttpRequest();
} else {
try {
return new ActiveXObject('MSXML2.XMLHTTP.3.0');
} catch (e) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
}-*/;
| public static native XMLHttpRequest create() /*-{
// Don't check window.XMLHttpRequest, because it can
// cause cross-site problems on IE8 if window's URL
// is javascript:'' .
if ($wnd.XMLHttpRequest) {
return new $wnd.XMLHttpRequest();
} else {
try {
return new $wnd.ActiveXOb... |
diff --git a/opentaps/opentaps-common/src/common/org/opentaps/common/domain/party/PartyMergeService.java b/opentaps/opentaps-common/src/common/org/opentaps/common/domain/party/PartyMergeService.java
index 2f5e0ed32..50b77de4f 100644
--- a/opentaps/opentaps-common/src/common/org/opentaps/common/domain/party/PartyMergeSe... | true | true | public void mergeParties() throws ServiceException {
Delegator delegator = getInfrastructure().getDelegator();
try {
if (validate) {
// validate again
validateMergeParties();
}
// merge the party objects
mergeTwoValu... | public void mergeParties() throws ServiceException {
Delegator delegator = getInfrastructure().getDelegator();
try {
if (validate) {
// validate again
validateMergeParties();
}
// merge the party objects
mergeTwoValu... |
diff --git a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java b/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
index b646c4c76..46657558d 100644
--- a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
+++ b/f... | false | true | public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime)
throws ManifoldCFException
{
// The query will be built here, because it joins the jobs table against the jobqueue
// table.
//
// This query must only pick up documents that are not active in any job and
//... | public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime)
throws ManifoldCFException
{
// The query will be built here, because it joins the jobs table against the jobqueue
// table.
//
// This query must only pick up documents that are not active in any job and
//... |
diff --git a/spring-datastore-redis/src/main/java/org/springframework/datastore/mapping/redis/util/JedisTemplate.java b/spring-datastore-redis/src/main/java/org/springframework/datastore/mapping/redis/util/JedisTemplate.java
index 846ce7bb..6864591c 100644
--- a/spring-datastore-redis/src/main/java/org/springframework/... | false | true | public List<Object> pipeline(final RedisCallback<RedisTemplate<Jedis, SortingParams>> pipeline) {
return (List<Object>) execute(new RedisCallback<Jedis>() {
public Object doInRedis(Jedis redis) throws IOException {
return redis.pipelined(new PipelineBlock(){
@... | public List<Object> pipeline(final RedisCallback<RedisTemplate<Jedis, SortingParams>> pipeline) {
return (List<Object>) execute(new RedisCallback<Jedis>() {
public Object doInRedis(Jedis redis) throws IOException {
return redis.pipelined(new PipelineBlock(){
@... |
diff --git a/src/com/joshondesign/treegui/modes/aminojs/AminoJSMode.java b/src/com/joshondesign/treegui/modes/aminojs/AminoJSMode.java
index ddbe4f9..0f77ecc 100644
--- a/src/com/joshondesign/treegui/modes/aminojs/AminoJSMode.java
+++ b/src/com/joshondesign/treegui/modes/aminojs/AminoJSMode.java
@@ -1,223 +1,223 @@
pa... | false | true | public AminoJSMode() {
setId("com.joshondesign.modes.aminojs");
add(new TreeNode<JAction>());
TreeNode<SketchNode> symbols = new TreeNode<SketchNode>();
symbols.setId("symbols");
DynamicNode visualBase = new DynamicNode();
visualBase
.addProperty(new... | public AminoJSMode() {
setId("com.joshondesign.modes.aminojs");
add(new TreeNode<JAction>());
TreeNode<SketchNode> symbols = new TreeNode<SketchNode>();
symbols.setId("symbols");
DynamicNode visualBase = new DynamicNode();
visualBase
.addProperty(new... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
index 37a1eb380..7f97d28f4 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
+++ b/org.eclipse.m... | true | true | public void updateHeaderToolBar() {
if (isHeaderFormDisposed()) {
return;
}
final Form form = getHeaderForm().getForm().getForm();
toolBarManager = form.getToolBarManager();
toolBarManager.removeAll();
// toolBarManager.update(true);
TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewT... | public void updateHeaderToolBar() {
if (isHeaderFormDisposed()) {
return;
}
final Form form = getHeaderForm().getForm().getForm();
toolBarManager = form.getToolBarManager();
toolBarManager.removeAll();
// toolBarManager.update(true);
TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewT... |
diff --git a/lucene/src/test/org/apache/lucene/index/TestMultiFields.java b/lucene/src/test/org/apache/lucene/index/TestMultiFields.java
index 5c670dc96..e87786f04 100644
--- a/lucene/src/test/org/apache/lucene/index/TestMultiFields.java
+++ b/lucene/src/test/org/apache/lucene/index/TestMultiFields.java
@@ -1,118 +1,11... | true | true | public void testRandom() throws Exception {
for(int iter=0;iter<2*_TestUtil.getRandomMultiplier();iter++) {
Directory dir = new MockRAMDirectory();
IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()).setMergePolicy(NoMergePolicy.COMPOUND_FILES));
... | public void testRandom() throws Exception {
for(int iter=0;iter<2*_TestUtil.getRandomMultiplier();iter++) {
Directory dir = new MockRAMDirectory();
IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()).setMergePolicy(NoMergePolicy.COMPOUND_FILES));
... |
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java
index 861dfc8c..175fbf37 100644
--- a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java
+++ b/cspi-webui/src/main/j... | true | true | private void reset(Storage storage,UIRequest request,String path) throws UIException {
//remember to log into the front end before trying to run this
JSONObject data = new JSONObject();
TTYOutputter tty=request.getTTYOutputter();
// Temporary hack to reset db
try {
data = storage.getPathsJSON("/",null);
... | private void reset(Storage storage,UIRequest request,String path) throws UIException {
//remember to log into the front end before trying to run this
JSONObject data = new JSONObject();
TTYOutputter tty=request.getTTYOutputter();
// Temporary hack to reset db
try {
data = storage.getPathsJSON("/",null);
... |
diff --git a/xstream/src/test/com/thoughtworks/xstream/core/util/ObjectIdDictionaryTest.java b/xstream/src/test/com/thoughtworks/xstream/core/util/ObjectIdDictionaryTest.java
index c32ff3e6..ad874251 100644
--- a/xstream/src/test/com/thoughtworks/xstream/core/util/ObjectIdDictionaryTest.java
+++ b/xstream/src/test/com/... | false | true | public void testEnforceSameSystemHashCodeForGCedObjects() {
StringBuffer memInfo = new StringBuffer("MemoryInfo:\n");
memInfo.append(memoryInfo());
memInfo.append('\n');
// create 100000 Strings and call GC after creation of 10000
final int loop = 10;
final i... | public void testEnforceSameSystemHashCodeForGCedObjects() {
StringBuffer memInfo = new StringBuffer("MemoryInfo:\n");
memInfo.append(memoryInfo());
memInfo.append('\n');
// create 100000 Strings and call GC after creation of 10000
final int loop = 10;
final i... |
diff --git a/cobertura/src/main/java/net/sourceforge/cobertura/reporting/ComplexityCalculator.java b/cobertura/src/main/java/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
index b427d68..b07cf65 100644
--- a/cobertura/src/main/java/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
+++ b/cober... | true | true | private Complexity getAccumlatedCCNForSource(String sourceFileName,
Source source) {
if (source == null) {
return ZERO_COMPLEXITY;
}
if (!sourceFileName.endsWith(".java")) {
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source
.getInputStream());
if (javancss.getLastErrorMessage(... | private Complexity getAccumlatedCCNForSource(String sourceFileName,
Source source) {
if (source == null) {
return ZERO_COMPLEXITY;
}
if (!sourceFileName.endsWith(".java")) {
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source.getInputStream());
if (javancss.getLastErrorMessage() != ... |
diff --git a/Npr/src/org/npr/android/news/NewsStoryActivity.java b/Npr/src/org/npr/android/news/NewsStoryActivity.java
index 3710790..01440da 100644
--- a/Npr/src/org/npr/android/news/NewsStoryActivity.java
+++ b/Npr/src/org/npr/android/news/NewsStoryActivity.java
@@ -1,275 +1,275 @@
// Copyright 2009 Google Inc.
//
... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
storyId = getIntent().getStringExtra(Constants.EXTRA_STORY_ID);
story = NewsListActivity.getStoryFromCache(storyId);
description = getIntent().getStringExtra(Constants.EXTRA_DESCRIPTION);
if (story == null) {... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
storyId = getIntent().getStringExtra(Constants.EXTRA_STORY_ID);
story = NewsListActivity.getStoryFromCache(storyId);
description = getIntent().getStringExtra(Constants.EXTRA_DESCRIPTION);
if (story == null) {... |
diff --git a/src/net/juhonkoti/sharetobrowser/ShareToBrowser.java b/src/net/juhonkoti/sharetobrowser/ShareToBrowser.java
index 7094f3b..5b30521 100755
--- a/src/net/juhonkoti/sharetobrowser/ShareToBrowser.java
+++ b/src/net/juhonkoti/sharetobrowser/ShareToBrowser.java
@@ -1,33 +1,33 @@
package net.juhonkoti.sharetobro... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_scan_qrcode);
Intent intent = getIntent();
Uri data = intent.getData();
Log.d("StartUrlSharing", "type: " + intent.getType());
if (... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_scan_qrcode);
Intent intent = getIntent();
Uri data = intent.getData();
Log.d("StartUrlSharing", "type: " + intent.getType());
if (... |
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 58b09479..052479ae 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essenti... | false | true | protected void sendLocalChat(final PlayerChatEvent event, final ChatStore chatStore)
{
event.setCancelled(true);
final User sender = chatStore.getUser();
logger.info(_("localFormat", sender.getName(), event.getMessage()));
final Location loc = sender.getLocation();
final World world = loc.getWorld();
if ... | protected void sendLocalChat(final PlayerChatEvent event, final ChatStore chatStore)
{
event.setCancelled(true);
final User sender = chatStore.getUser();
logger.info(_("localFormat", sender.getName(), event.getMessage()));
final Location loc = sender.getLocation();
final World world = loc.getWorld();
if ... |
diff --git a/src/com/android/bluetooth/btservice/RemoteDevices.java b/src/com/android/bluetooth/btservice/RemoteDevices.java
index 04bc1c2..a60f977 100755
--- a/src/com/android/bluetooth/btservice/RemoteDevices.java
+++ b/src/com/android/bluetooth/btservice/RemoteDevices.java
@@ -1,464 +1,465 @@
/*
* Copyright (C) 2... | true | true | void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] values) {
Intent intent;
byte[] val;
int type;
BluetoothDevice bdDevice = getDevice(address);
DeviceProperties device;
if (bdDevice == null) {
device = addDeviceProperties(address);
... | void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] values) {
Intent intent;
byte[] val;
int type;
BluetoothDevice bdDevice = getDevice(address);
DeviceProperties device;
if (bdDevice == null) {
device = addDeviceProperties(address);
... |
diff --git a/nuget-server/src/jetbrains/buildServer/nuget/server/feed/server/tab/FeedServerController.java b/nuget-server/src/jetbrains/buildServer/nuget/server/feed/server/tab/FeedServerController.java
index 7142a034..5dda8b2b 100644
--- a/nuget-server/src/jetbrains/buildServer/nuget/server/feed/server/tab/FeedServerC... | true | true | protected ModelAndView doHandle(@NotNull final HttpServletRequest request,
@NotNull final HttpServletResponse response) throws Exception {
if (!mySystemInfo.canStartNuGetProcesses()) {
return new ModelAndView(myDescriptor.getPluginResourcesPath("server/feedServerSettingsOth... | protected ModelAndView doHandle(@NotNull final HttpServletRequest request,
@NotNull final HttpServletResponse response) throws Exception {
if (!mySystemInfo.canStartNuGetProcesses()) {
final ModelAndView mv = new ModelAndView(myDescriptor.getPluginResourcesPath("server/feed... |
diff --git a/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java b/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java
index 4ffa8917c2..29d6789c5e 100644
--- a/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java
+++ b/aura/src/test/jav... | true | true | public void deleteFiles(DefDescriptor<?> defDescriptor) {
Source<?> source = Aura.getContextService().getCurrentContext().getDefRegistry().getSource(defDescriptor);
if (source != null) {
File f = new File(source.getSystemId());
if (f.exists()) {
File dir = f.g... | public void deleteFiles(DefDescriptor<?> defDescriptor) {
Source<?> source = Aura.getContextService().getCurrentContext().getDefRegistry().getSource(defDescriptor);
if (source != null) {
File f = new File(source.getSystemId());
if (f.exists()) {
File dir = f.g... |
diff --git a/src/ru/leks13/jabbertimer/UserCommand.java b/src/ru/leks13/jabbertimer/UserCommand.java
index a240051..fd27c88 100644
--- a/src/ru/leks13/jabbertimer/UserCommand.java
+++ b/src/ru/leks13/jabbertimer/UserCommand.java
@@ -1,192 +1,192 @@
/*
* Leks13
* GPL v3
*/
package ru.leks13.jabbertimer;
impo... | false | true | public static Boolean doUserCommand(String command, String jid, String admin) throws XMPPException, IOException, NumberFormatException, ClassNotFoundException, SQLException, ParseException {
Boolean ans = false;
String msg = null;
if (command.startsWith("!report") && !ans) {
com... | public static Boolean doUserCommand(String command, String jid, String admin) throws XMPPException, IOException, NumberFormatException, ClassNotFoundException, SQLException, ParseException {
Boolean ans = false;
String msg = null;
if (command.startsWith("!report") && !ans) {
com... |
diff --git a/Tests/src/com/bazaarvoice/test/BaseTest.java b/Tests/src/com/bazaarvoice/test/BaseTest.java
index bb86086..3f57628 100644
--- a/Tests/src/com/bazaarvoice/test/BaseTest.java
+++ b/Tests/src/com/bazaarvoice/test/BaseTest.java
@@ -1,31 +1,31 @@
package com.bazaarvoice.test;
import com.bazaarvoice.BazaarRe... | false | true | protected void setUp() throws Exception {
super.setUp();
request = new BazaarRequest(
"reviews.apitestcustomer.bazaarvoice.com/bvstaging",
"kuy3zj9pr3n7i0wxajrzj04xo",
"5.1");
submit = new BazaarRequest(
"reviews.apitestcustome... | protected void setUp() throws Exception {
super.setUp();
request = new BazaarRequest(
"reviews.apitestcustomer.bazaarvoice.com/bvstaging",
"kuy3zj9pr3n7i0wxajrzj04xo",
"5.3");
submit = new BazaarRequest(
"reviews.apitestcustome... |
diff --git a/trunk/p-dl-reasoner/src/edu/iastate/pdlreasoner/tableau/graph/TableauGraph.java b/trunk/p-dl-reasoner/src/edu/iastate/pdlreasoner/tableau/graph/TableauGraph.java
index e8f1c3b..a37bc81 100644
--- a/trunk/p-dl-reasoner/src/edu/iastate/pdlreasoner/tableau/graph/TableauGraph.java
+++ b/trunk/p-dl-reasoner/src... | false | true | public void pruneTo(BranchPoint restoreTarget) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(m_Package.toDebugString() + "pruning starts with target = " + restoreTarget);
}
//Prune nodes
m_PruneNodesCollector.reset(restoreTarget);
accept(m_PruneNodesCollector);
for (Node n : m_PruneNodesCollector.get... | public void pruneTo(BranchPoint restoreTarget) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(m_Package.toDebugString() + "pruning starts with target = " + restoreTarget);
LOGGER.debug(m_Package.toDebugString() + "branches before pruning = " + m_Branches);
}
//Prune nodes
m_PruneNodesCollector.reset(re... |
diff --git a/src/main/java/com/hmsonline/cassandra/triggers/LogEntryStore.java b/src/main/java/com/hmsonline/cassandra/triggers/LogEntryStore.java
index fa3457e..6cfda8f 100644
--- a/src/main/java/com/hmsonline/cassandra/triggers/LogEntryStore.java
+++ b/src/main/java/com/hmsonline/cassandra/triggers/LogEntryStore.java... | true | true | public static String getHostName() throws SocketException {
if (hostName == null) {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
{
while (interfaces.hasMoreElements()) {
NetworkInterface nic = interfaces.nextE... | public static String getHostName() throws SocketException {
if (hostName == null) {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
{
while (interfaces.hasMoreElements()) {
NetworkInterface nic = interfaces.nextE... |
diff --git a/SpagoBIProject/src/it/eng/spagobi/analiticalmodel/execution/service/GetParameterValuesForExecutionAction.java b/SpagoBIProject/src/it/eng/spagobi/analiticalmodel/execution/service/GetParameterValuesForExecutionAction.java
index b66187792..7a176b247 100644
--- a/SpagoBIProject/src/it/eng/spagobi/analiticalm... | true | true | public void doService() {
String biparameterId;
JSONObject selectedParameterValuesJSON;
JSONObject filtersJSON = null;
Map selectedParameterValues;
String mode;
JSONObject valuesJSON;
String contest;
BIObjectParameter biObjectParameter;
ExecutionInstance executionInstance;
String valueColumn;
St... | public void doService() {
String biparameterId;
JSONObject selectedParameterValuesJSON;
JSONObject filtersJSON = null;
Map selectedParameterValues;
String mode;
JSONObject valuesJSON;
String contest;
BIObjectParameter biObjectParameter;
ExecutionInstance executionInstance;
String valueColumn;
St... |
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
index 2369ab42..b160b01f 100644
--- a/doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java
+++ b/doxia-core/src/tes... | true | true | public void testIdentity()
throws IOException, ParseException
{
// generate the expected model
StringWriter writer = new StringWriter();
Sink sink = new TextSink( writer );
SinkTestDocument.generate( sink );
sink.close();
expected = writer.toString();
... | public void testIdentity()
throws IOException, ParseException
{
// generate the expected model
StringWriter writer = new StringWriter();
Sink sink = new TextSink( writer );
SinkTestDocument.generate( sink );
sink.close();
expected = writer.toString();
... |
diff --git a/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/cpp/SerDesAdder.java b/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/cpp/SerDesAdder.java
index 87a5b9cab..e06c61d50 100644
--- a/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/cpp/SerDesAdder.java
+++ b/plugins/net.sf.orcc.backends/src/n... | true | true | public void transform(Network network) throws OrccException {
graph = network.getGraph();
OrderedMap<String, Port> inputs = network.getInputs();
OrderedMap<String, Port> outputs = network.getOutputs();
if (inputs.getLength() > 0 || outputs.getLength() > 0) {
// Vertex serdes = new Vertex(new Instance("Ser... | public void transform(Network network) throws OrccException {
graph = network.getGraph();
OrderedMap<String, Port> inputs = network.getInputs();
OrderedMap<String, Port> outputs = network.getOutputs();
if (inputs.getLength() > 0 || outputs.getLength() > 0) {
// Vertex serdes = new Vertex(new Instance("Ser... |
diff --git a/src/main/java/ch/bli/mez/view/MainView.java b/src/main/java/ch/bli/mez/view/MainView.java
index 5bcc9b7..55adfb6 100644
--- a/src/main/java/ch/bli/mez/view/MainView.java
+++ b/src/main/java/ch/bli/mez/view/MainView.java
@@ -1,100 +1,100 @@
package ch.bli.mez.view;
import java.awt.CardLayout;
import ja... | true | true | public MainView() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().setLayout(new CardLayout(0, 0));
setMinimumSize(new Dimension(1000, 600));
try {
UIManager
.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (Exception e) {
e.printStackTrace();
}
... | public MainView() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().setLayout(new CardLayout(0, 0));
setMinimumSize(new Dimension(1000, 600));
try {
UIManager
.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (Exception e) {
e.printStackTrace();
}
... |
diff --git a/session-impl/integration-test/src/test/java/org/cytoscape/session/BasicIntegrationTest.java b/session-impl/integration-test/src/test/java/org/cytoscape/session/BasicIntegrationTest.java
index 07fd5a4bf..2fafd03b9 100644
--- a/session-impl/integration-test/src/test/java/org/cytoscape/session/BasicIntegratio... | true | true | public Option[] config() {
// These system properties are set in the surefire configuration in the pom.
String apiBundleVersion = System.getProperty("cytoscape.api.version");
String implBundleVersion = System.getProperty("cytoscape.impl.version");
return options(
junitBundles(),
// Use Felix as runti... | public Option[] config() {
// These system properties are set in the surefire configuration in the pom.
String apiBundleVersion = System.getProperty("cytoscape.api.version");
String implBundleVersion = System.getProperty("cytoscape.impl.version");
return options(
junitBundles(),
// Use Felix as runti... |
diff --git a/android/ibrdtn-api/src/de/tubs/ibr/dtn/api/Bundle.java b/android/ibrdtn-api/src/de/tubs/ibr/dtn/api/Bundle.java
index e7f67d1d..fc220937 100644
--- a/android/ibrdtn-api/src/de/tubs/ibr/dtn/api/Bundle.java
+++ b/android/ibrdtn-api/src/de/tubs/ibr/dtn/api/Bundle.java
@@ -1,308 +1,308 @@
/*
* Block.java
... | false | true | public Bundle createFromParcel(final Parcel source) {
// create bundle
Bundle b = new Bundle();
// read processing flags
b.procflags = source.readLong();
// read null marker array
boolean nullMarker[] = { false, false, false, false, false... | public Bundle createFromParcel(final Parcel source) {
// create bundle
Bundle b = new Bundle();
// read processing flags
b.procflags = source.readLong();
// read null marker array
boolean nullMarker[] = { false, false, false, false, false... |
diff --git a/Gamework/src/cz/robyer/gamework/hook/Condition.java b/Gamework/src/cz/robyer/gamework/hook/Condition.java
index 45fb730..1e04b65 100644
--- a/Gamework/src/cz/robyer/gamework/hook/Condition.java
+++ b/Gamework/src/cz/robyer/gamework/hook/Condition.java
@@ -1,118 +1,118 @@
package cz.robyer.gamework.hook;
... | true | true | public boolean isValid(Variable variable) {
// If this condition has defined own variable, we use that
if (this.variable.length() > 0) {
Log.d(TAG, String.format("This condition uses own variable '%s'.", this.variable));
variable = getScenario().getVariable(this.variable);
}
if (variable == null) {
... | public boolean isValid(Variable variable) {
// If this condition has defined own variable, we use that
if (this.variable != null) {
Log.d(TAG, String.format("This condition uses own variable '%s'.", this.variable));
variable = getScenario().getVariable(this.variable);
}
if (variable == null) {
Log.... |
diff --git a/src/gov/nih/nci/rembrandt/util/ApplicationContext.java b/src/gov/nih/nci/rembrandt/util/ApplicationContext.java
index d4c1e286..fd5ce756 100755
--- a/src/gov/nih/nci/rembrandt/util/ApplicationContext.java
+++ b/src/gov/nih/nci/rembrandt/util/ApplicationContext.java
@@ -1,224 +1,224 @@
package gov.nih.nci.... | true | true | public static void init() {
logger.debug("Loading Application Resources");
labelProps = PropertyLoader.loadProperties(RembrandtConstants.APPLICATION_RESOURCES);
messagingProps = PropertyLoader.loadProperties(RembrandtConstants.JMS_PROPERTIES);
try {
logger.debug("Bean to Att... | public static void init() {
logger.debug("Loading Application Resources");
labelProps = PropertyLoader.loadProperties(RembrandtConstants.APPLICATION_RESOURCES);
messagingProps = PropertyLoader.loadProperties(RembrandtConstants.JMS_PROPERTIES);
try {
logger.debug("Bean to Att... |
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/chat/Chat.java b/src/FE_SRC_COMMON/com/ForgeEssentials/chat/Chat.java
index d5cc51b71..87d6decfa 100644
--- a/src/FE_SRC_COMMON/com/ForgeEssentials/chat/Chat.java
+++ b/src/FE_SRC_COMMON/com/ForgeEssentials/chat/Chat.java
@@ -1,144 +1,158 @@
package com.ForgeEssential... | true | true | public void chatEvent(ServerChatEvent event)
{
/*
* Mute?
*/
if(event.player.getEntityData().getCompoundTag(event.player.PERSISTED_NBT_TAG).getBoolean("mute"))
{
event.setCanceled(true);
event.player.sendChatToPlayer("You are muted.");
return;
}
String message = event.message;
String ... | public void chatEvent(ServerChatEvent event)
{
/*
* Mute?
*/
if(event.player.getEntityData().getCompoundTag(event.player.PERSISTED_NBT_TAG).getBoolean("mute"))
{
event.setCanceled(true);
event.player.sendChatToPlayer("You are muted.");
return;
}
String message = event.message;
String ... |
diff --git a/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java b/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
index 416ad42..a68abbf 100644
--- a/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
+++ b/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
@@ -1,60 +1,60 @@
package huds... | true | true | public void doCreateSlave(StaplerRequest req, StaplerResponse rsp, @QueryParameter String name, @QueryParameter String description, @QueryParameter int executors,
@QueryParameter String remoteFsRoot, @QueryParameter String labels, @QueryParameter String secret) throws IOException, Form... | public void doCreateSlave(StaplerRequest req, StaplerResponse rsp, @QueryParameter String name, @QueryParameter String description, @QueryParameter int executors,
@QueryParameter String remoteFsRoot, @QueryParameter String labels, @QueryParameter String secret) throws IOException, Form... |
diff --git a/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBenchmark.java b/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBenchmark.java
index b5ce57f..c86521c 100644
--- a/neddybenchmark/src/main/java/com/fbudassi/neddy/benchmark/benchmarks/WebsocketBench... | false | true | public void execute() throws Exception {
logger.info("Trying to generate {} listeners to the server", totalConnections);
// Get the first three octets by one side and the last one by the other side.
String clientIpBase = CLIENT_BASEADDRESS.substring(0, CLIENT_BASEADDRESS.lastIndexOf(".") + ... | public void execute() throws Exception {
logger.info("Trying to generate {} listeners to the server", totalConnections);
// Get the first three octets by one side and the last one by the other side.
String clientIpBase = CLIENT_BASEADDRESS.substring(0, CLIENT_BASEADDRESS.lastIndexOf(".") + ... |
diff --git a/com.worldline.clic/src/main/java/com/worldline/clic/internal/commands/impl/HelpCommand.java b/com.worldline.clic/src/main/java/com/worldline/clic/internal/commands/impl/HelpCommand.java
index 6f69f9d..7379d8a 100644
--- a/com.worldline.clic/src/main/java/com/worldline/clic/internal/commands/impl/HelpComman... | true | true | public void execute(final CommandContext context) {
final AbstractCommand createdCommand = options.has(command) ? CommandRegistry
.getInstance().createCommand(options.valueOf(command))
: CommandRegistry.getInstance().createCommand("help");
try {
context.write(ClicMessages.COMMAND_HELP.value(options
... | public void execute(final CommandContext context) {
final AbstractCommand createdCommand = options.has(command) ? CommandRegistry
.getInstance().createCommand(options.valueOf(command))
: CommandRegistry.getInstance().createCommand("help");
try {
context.write(options.has(command) ? ClicMessages.COMMAND_... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java
index 5cc13b2f2..23fbfaf07 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java
+++ b/webapp/src/edu/cornell/ma... | true | true | private void redirectLoggedInUser(HttpServletRequest request,
HttpServletResponse response) throws IOException,
UnsupportedEncodingException {
// Did they have a one-time redirect stored on the session?
String sessionRedirect = (String) request.getSession().getAttribute(
"postLoginRequest");
if (sessio... | private void redirectLoggedInUser(HttpServletRequest request,
HttpServletResponse response) throws IOException,
UnsupportedEncodingException {
// Did they have a one-time redirect stored on the session?
String sessionRedirect = (String) request.getSession().getAttribute(
"postLoginRequest");
if (sessio... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index b261a75b..fae1d17f 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1139 +1,1139 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/src/main/java/burst/reader/web/ExtendedRedirectResult.java b/src/main/java/burst/reader/web/ExtendedRedirectResult.java
index 7aac35d..db88553 100644
--- a/src/main/java/burst/reader/web/ExtendedRedirectResult.java
+++ b/src/main/java/burst/reader/web/ExtendedRedirectResult.java
@@ -1,55 +1,60 @@
package ... | true | true | protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
if(request.getHeader(WebUtil.HEAD_USERAGENT).toLowerCase().index... | protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
boolean write_wml = false;
String userAgent = request.ge... |
diff --git a/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java b/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java
index 8356bc51..9af03056 100644
--- a/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java
+++ b/src/main/java/com/solidstat... | true | true | public GenericDiagnosis getById(String id) {
try {
return jdbcTemplate.queryForObject("SELECT DISTINCT *, FROM rdr_prd_code, rdr_diagnosis_mapping" +
" WHERE rdr_prd_code.ERA_EDTA_PRD_code = rdr_diagnosis_mapping.PRDCode" +
" AND ERA_EDTA_PRD_code = ?", ne... | public GenericDiagnosis getById(String id) {
try {
return jdbcTemplate.queryForObject("SELECT DISTINCT * FROM rdr_prd_code, rdr_diagnosis_mapping" +
" WHERE rdr_prd_code.ERA_EDTA_PRD_code = rdr_diagnosis_mapping.PRDCode" +
" AND ERA_EDTA_PRD_code = ?", new... |
diff --git a/carrot2/components/carrot2-launcher/src/org/carrot2/launcher/LaunchOptions.java b/carrot2/components/carrot2-launcher/src/org/carrot2/launcher/LaunchOptions.java
index 557431710..b023f019b 100644
--- a/carrot2/components/carrot2-launcher/src/org/carrot2/launcher/LaunchOptions.java
+++ b/carrot2/components/... | true | true | public void addDirLocation(File dirLocation)
{
try
{
final URL url = dirLocation.toURL();
final String external = url.toExternalForm();
if (!external.endsWith("/")) {
throw new LaunchException("A folder URL should end with a '/'.");
... | public void addDirLocation(File dirLocation)
{
try
{
final URL url = dirLocation.toURI().toURL();
final String external = url.toExternalForm();
if (!external.endsWith("/")) {
throw new LaunchException("A folder URL should end with a '/'.");
... |
diff --git a/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java b/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java
index 31a2520..ce1fea6 100644
--- a/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java
+++ b/pp-rebel/src/main/java/com/polopoly/javarebel/P... | false | true | public void preinit() {
// Register the CBP
Integration i = IntegrationFactory.getInstance();
ClassLoader cl = PolopolyJRebelPlugin.class.getClassLoader();
i.addIntegrationProcessor(cl, "com.polopoly.cm.client.impl.service2client.ContentBase", new ContentBaseProcessor());
Cfg cfg = ConfigurationPr... | public void preinit() {
// Register the CBP
Integration i = IntegrationFactory.getInstance();
ClassLoader cl = PolopolyJRebelPlugin.class.getClassLoader();
i.addIntegrationProcessor(cl, "com.polopoly.cm.client.impl.service2client.ContentBase", new ContentBaseProcessor());
Cfg cfg = ConfigurationPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.