Datasets:

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/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java index 86a2f5ce7..561b43f6f 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java +++ b/gerrit-...
true
true
public void display(Change.Id changeId, Boolean starred, String commitMessage) { starPanel.clear(); if (changeId != null && starred != null && Gerrit.isSignedIn()) { StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred); star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI...
public void display(Change.Id changeId, Boolean starred, String commitMessage) { starPanel.clear(); if (changeId != null && starred != null && Gerrit.isSignedIn()) { StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred); star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI...
diff --git a/javasrc/src/org/ccnx/ccn/protocol/ContentObject.java b/javasrc/src/org/ccnx/ccn/protocol/ContentObject.java index fb1e6d2b0..9a3089239 100644 --- a/javasrc/src/org/ccnx/ccn/protocol/ContentObject.java +++ b/javasrc/src/org/ccnx/ccn/protocol/ContentObject.java @@ -1,844 +1,838 @@ /** * Part of the CCNx J...
false
true
public static boolean verify(ContentObject object, PublicKey publicKey) throws SignatureException, InvalidKeyException, NoSuchAlgorithmException, ContentEncodingException { if (null == publicKey) { throw new SignatureException("Cannot verify object without public key -- public key cannot be null!"...
public static boolean verify(ContentObject object, PublicKey publicKey) throws SignatureException, InvalidKeyException, NoSuchAlgorithmException, ContentEncodingException { if (null == publicKey) { throw new SignatureException("Cannot verify object without public key -- public key cannot be null!"...
diff --git a/maven-scm-providers/maven-scm-provider-starteam/src/test/java/org/apache/maven/scm/provider/starteam/command/status/StarteamStatusConsumerTest.java b/maven-scm-providers/maven-scm-provider-starteam/src/test/java/org/apache/maven/scm/provider/starteam/command/status/StarteamStatusConsumerTest.java index 412...
true
true
public void testParse() throws Exception { FileInputStream fis = new FileInputStream( testFile ); BufferedReader in = new BufferedReader( new InputStreamReader( fis ) ); String s = in.readLine(); StarteamStatusConsumer consumer = new StarteamStatusConsumer( new Default...
public void testParse() throws Exception { FileInputStream fis = new FileInputStream( testFile ); BufferedReader in = new BufferedReader( new InputStreamReader( fis ) ); String s = in.readLine(); StarteamStatusConsumer consumer = new StarteamStatusConsumer( new Default...
diff --git a/java/uk/ltd/getahead/dwr/convert/ConverterUtil.java b/java/uk/ltd/getahead/dwr/convert/ConverterUtil.java index fcfaccf3..de581e14 100644 --- a/java/uk/ltd/getahead/dwr/convert/ConverterUtil.java +++ b/java/uk/ltd/getahead/dwr/convert/ConverterUtil.java @@ -1,361 +1,361 @@ /* * Copyright 2005 Joe Walker...
true
true
public static void addListInit(OutboundVariable ov, List ovs) { String varname = ov.getAssignCode(); StringBuffer buffer = new StringBuffer(); String init = getInitCodes(ovs); if (init.length() == 0) { // Declare ourselves so recurrsion works buf...
public static void addListInit(OutboundVariable ov, List ovs) { String varname = ov.getAssignCode(); StringBuffer buffer = new StringBuffer(); String init = getInitCodes(ovs); if (init.length() == 0) { // Declare ourselves so recurrsion works buf...
diff --git a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java index 049bd3d..13f3997 100644 --- a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java +++ b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java @@ -1,836 +1,833 @@ /* * Portions Copyright (C) ...
true
true
public void init(GLDrawable drawable) { // init() might get called more than once if the GLCanvas is // added and removed, but we only want to install the DebugGL // pipeline once // if (!(drawable.getGL() instanceof DebugGL)) { // drawable.setGL(new DebugGL(drawable.getGL(...
public void init(GLDrawable drawable) { // init() might get called more than once if the GLCanvas is // added and removed, but we only want to install the DebugGL // pipeline once // if (!(drawable.getGL() instanceof DebugGL)) { // drawable.setGL(new DebugGL(drawable.getGL(...
diff --git a/v4/java/android/support/v4/widget/DrawerLayout.java b/v4/java/android/support/v4/widget/DrawerLayout.java index c5772de..0b923e7 100644 --- a/v4/java/android/support/v4/widget/DrawerLayout.java +++ b/v4/java/android/support/v4/widget/DrawerLayout.java @@ -1,1591 +1,1592 @@ /* * Copyright (C) 2013 The An...
true
true
protected void onLayout(boolean changed, int l, int t, int r, int b) { mInLayout = true; final int width = r - l; final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); if (child.getVisibility() == GON...
protected void onLayout(boolean changed, int l, int t, int r, int b) { mInLayout = true; final int width = r - l; final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); if (child.getVisibility() == GON...
diff --git a/errai-cdi/errai-cdi-client/src/main/java/org/jboss/errai/enterprise/client/cdi/CDIClientBootstrap.java b/errai-cdi/errai-cdi-client/src/main/java/org/jboss/errai/enterprise/client/cdi/CDIClientBootstrap.java index 61d76c45e..f29d9c455 100644 --- a/errai-cdi/errai-cdi-client/src/main/java/org/jboss/errai/en...
true
true
public void run() { LogUtil.log("CDI subsystem syncing with server ..."); BusErrorCallback serverDispatchErrorCallback = new BusErrorCallback() { @Override public boolean error(Message message, Throwable throwable) { try { throw throwable; } cat...
public void run() { LogUtil.log("CDI subsystem syncing with server ..."); BusErrorCallback serverDispatchErrorCallback = new BusErrorCallback() { @Override public boolean error(Message message, Throwable throwable) { try { throw throwable; } cat...
diff --git a/src/rajawali/primitives/Cube.java b/src/rajawali/primitives/Cube.java index 00a605b3..580772d8 100644 --- a/src/rajawali/primitives/Cube.java +++ b/src/rajawali/primitives/Cube.java @@ -1,112 +1,112 @@ package rajawali.primitives; import rajawali.BaseObject3D; public class Cube extends BaseObject3D ...
true
true
private void init() { float halfSize = mSize * .5f; float[] vertices = { halfSize, halfSize, halfSize, -halfSize, halfSize, halfSize, -halfSize,-halfSize, halfSize, halfSize,-halfSize, halfSize, //0-1-halfSize-3 front halfSize, halfSize, halfSize, halfSize,-halfSize, halfSize, halfSize,-halfS...
private void init() { float halfSize = mSize * .5f; float[] vertices = { halfSize, halfSize, halfSize, -halfSize, halfSize, halfSize, -halfSize,-halfSize, halfSize, halfSize,-halfSize, halfSize, //0-1-halfSize-3 front halfSize, halfSize, halfSize, halfSize,-halfSize, halfSize, halfSize,-halfS...
diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MovingCheckListener.java b/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MovingCheckListener.java index 8c43935..048288a 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/moving/MovingCheckListener.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks...
true
true
public void move(final PlayerMoveEvent event) { // Don't care for vehicles if (event.isCancelled() || event.getPlayer().isInsideVehicle()) return; // Don't care for movements that are very high distance or to another // world (such that it is very likely the event data ...
public void move(final PlayerMoveEvent event) { // Don't care for vehicles if (event.isCancelled() || event.getPlayer().isInsideVehicle()) return; // Don't care for movements that are very high distance or to another // world (such that it is very likely the event data ...
diff --git a/src/main/ed/appserver/jxp/Parser.java b/src/main/ed/appserver/jxp/Parser.java index aa9a2e6b0..5287497ab 100644 --- a/src/main/ed/appserver/jxp/Parser.java +++ b/src/main/ed/appserver/jxp/Parser.java @@ -1,182 +1,184 @@ // Parser.java package ed.appserver.jxp; import java.io.*; import java.util.*; ...
true
true
static List<Block> parse( JxpSource s ) throws IOException { String data = s.getContent(); int lastline = 1; int line = 1; final boolean isTemplate = s.getName().endsWith( ".html" ); Block.Type curType = s.getName().endsWith( ".jxp" ) || s.getName()...
static List<Block> parse( JxpSource s ) throws IOException { String data = s.getContent(); int lastline = 1; int line = 1; final boolean isTemplate = s.getName().endsWith( ".html" ); Block.Type curType = s.getName().endsWith( ".jxp" ) || s.getName()...
diff --git a/src/com/trendrr/oss/networking/strest/StrestSynchronousRequest.java b/src/com/trendrr/oss/networking/strest/StrestSynchronousRequest.java index 55b7284..b85e51b 100644 --- a/src/com/trendrr/oss/networking/strest/StrestSynchronousRequest.java +++ b/src/com/trendrr/oss/networking/strest/StrestSynchronousRequ...
true
true
public StrestResponse awaitResponse(long timeoutMillis) throws Throwable { try { //try to aquire a semaphore, none is available so we wait. if (timeoutMillis > 0) { lock.acquire(1); } else { if (!lock.tryAcquire(timeoutMillis, TimeUnit.MILLISECONDS)) { throw new TrendrrTimeoutException("Waited ...
public StrestResponse awaitResponse(long timeoutMillis) throws Throwable { try { //try to aquire a semaphore, none is available so we wait. if (timeoutMillis <= 0) { lock.acquire(1); } else { if (!lock.tryAcquire(timeoutMillis, TimeUnit.MILLISECONDS)) { throw new TrendrrTimeoutException("Waited...
diff --git a/bpm/bonita-bpm-integration-tests/bonita-integration-local-tests/src/main/java/org/bonitasoft/engine/TestShades.java b/bpm/bonita-bpm-integration-tests/bonita-integration-local-tests/src/main/java/org/bonitasoft/engine/TestShades.java index cf9d6fd5fa..1c70d8cda6 100644 --- a/bpm/bonita-bpm-integration-test...
false
true
public void testShades() throws IOException { String version = System.getProperty("bonita.version");// works in maven if (version == null) { // when running tests in eclipse get it from the pom.xml File file = new File("pom.xml"); String pomContent = IOUtil.read(f...
public void testShades() throws IOException { String version = System.getProperty("bonita.version");// works in maven if (version == null) { // when running tests in eclipse get it from the pom.xml File file = new File("pom.xml"); String pomContent = IOUtil.read(f...
diff --git a/src/main/java/com/in6k/mypal/controller/TransactionController.java b/src/main/java/com/in6k/mypal/controller/TransactionController.java index 7823cf4..6ebf4d2 100644 --- a/src/main/java/com/in6k/mypal/controller/TransactionController.java +++ b/src/main/java/com/in6k/mypal/controller/TransactionController....
false
true
public String create(HttpServletRequest request, ModelMap model) throws IOException { TransactionValidator transactionValidator = new TransactionValidator(); HttpSession session = request.getSession(); User userSession = (User) session.getAttribute("LoggedUser"); transactionValida...
public String create(HttpServletRequest request, ModelMap model) throws IOException { TransactionValidator transactionValidator = new TransactionValidator(); HttpSession session = request.getSession(); User userSession = (User) session.getAttribute("LoggedUser"); transactionValida...
diff --git a/src/com/android/settings/wifi/AdvancedWifiSettings.java b/src/com/android/settings/wifi/AdvancedWifiSettings.java index fc1b128a4..c213512bb 100644 --- a/src/com/android/settings/wifi/AdvancedWifiSettings.java +++ b/src/com/android/settings/wifi/AdvancedWifiSettings.java @@ -1,198 +1,200 @@ /* * Copyrig...
false
true
private void initPreferences() { CheckBoxPreference notifyOpenNetworks = (CheckBoxPreference) findPreference(KEY_NOTIFY_OPEN_NETWORKS); notifyOpenNetworks.setChecked(Secure.getInt(getContentResolver(), Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0) == 1); noti...
private void initPreferences() { CheckBoxPreference notifyOpenNetworks = (CheckBoxPreference) findPreference(KEY_NOTIFY_OPEN_NETWORKS); notifyOpenNetworks.setChecked(Secure.getInt(getContentResolver(), Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0) == 1); noti...
diff --git a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java b/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java index 422ce95..f9478e9 100644 --- a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/map/GameMap.java +++ b/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp...
false
true
private void setupGameMapView() { gameMaplistView = new ListView<List<Square>>("gameMap", gameMapList) { private static final long serialVersionUID = 7083713778515545799L; @Override protected void populateItem(ListItem<List<Square>> row) { List<Square> r...
private void setupGameMapView() { gameMaplistView = new ListView<List<Square>>("gameMap", gameMapList) { private static final long serialVersionUID = 7083713778515545799L; @Override protected void populateItem(ListItem<List<Square>> row) { List<Square> r...
diff --git a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateSubtaskServlet.java b/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateSubtaskServlet.java index 395ddcb..0365838 100644 --- a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateSubtaskServlet.java +++ b/src/ProjectControl/src/org/cvut/...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { String taskName = (String) req.getParameter("taskName"); Composi...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { String taskName = (String) req.getParameter("taskName"); Composi...
diff --git a/src/edu/ucla/cens/awserver/validator/AbstractAnnotatingValidator.java b/src/edu/ucla/cens/awserver/validator/AbstractAnnotatingValidator.java index 042869c7..2fa0ed22 100644 --- a/src/edu/ucla/cens/awserver/validator/AbstractAnnotatingValidator.java +++ b/src/edu/ucla/cens/awserver/validator/AbstractAnnota...
true
true
public AbstractAnnotatingValidator(AwRequestAnnotator annotator) { if(null == annotator) { throw new IllegalArgumentException("an AwRequestAnnotationStrategy is required"); } _annotator = annotator; }
public AbstractAnnotatingValidator(AwRequestAnnotator annotator) { if(null == annotator) { throw new IllegalArgumentException("a non-null annotator is required"); } _annotator = annotator; }
diff --git a/modules/highlevel/hookApprove/src/dk/statsbiblioteket/doms/bitstorage/highlevel/HookApprove.java b/modules/highlevel/hookApprove/src/dk/statsbiblioteket/doms/bitstorage/highlevel/HookApprove.java index 2ca942c..90efc6e 100644 --- a/modules/highlevel/hookApprove/src/dk/statsbiblioteket/doms/bitstorage/highl...
true
true
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { init(); if (!HOOKEDMETHOD.equals(method.getName())) { //this calls the next proxy in the chain, and does nothing // here //target is...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { init(); if (!HOOKEDMETHOD.equals(method.getName())) { //this calls the next proxy in the chain, and does nothing // here //target is...
diff --git a/TravelGates/src/com/ghomerr/travelgates/TravelGates.java b/TravelGates/src/com/ghomerr/travelgates/TravelGates.java index 738b02c..7403529 100644 --- a/TravelGates/src/com/ghomerr/travelgates/TravelGates.java +++ b/TravelGates/src/com/ghomerr/travelgates/TravelGates.java @@ -1,2922 +1,2922 @@ package com....
true
true
public boolean teleportPlayerToDest(final String dest, final Player player, final boolean destHasBeenChecked, final boolean ignorePlayerLocation, final String portalDestinationShortLoc) { if (_isDebugEnabled) { _LOGGER.info(_debug + " Start teleportPlayerToDest(dest=" + dest + ", player=" + player + ", des...
public boolean teleportPlayerToDest(final String dest, final Player player, final boolean destHasBeenChecked, final boolean ignorePlayerLocation, final String portalDestinationShortLoc) { if (_isDebugEnabled) { _LOGGER.info(_debug + " Start teleportPlayerToDest(dest=" + dest + ", player=" + player + ", des...
diff --git a/sobiohazardous/minestrappolation/extramobdrops/bridge/EMDBridgeRecipes.java b/sobiohazardous/minestrappolation/extramobdrops/bridge/EMDBridgeRecipes.java index 23950341..2df056d7 100644 --- a/sobiohazardous/minestrappolation/extramobdrops/bridge/EMDBridgeRecipes.java +++ b/sobiohazardous/minestrappolation/...
false
true
public static void loadBridgeRecipes() throws Exception { if(Loader.isModLoaded("ExtraOres")) { GameRegistry.addShapelessRecipe(new ItemStack(ExtraMobDrops.hornSandstone), new Object[] { ExtraMobDrops.horn, ExtraMobDrops.horn, sobiohazardous.minestrappolation.extraores.ExtraOres.SandstoneSword })...
public static void loadBridgeRecipes() throws Exception { if(Loader.isModLoaded("ExtraOres")) { GameRegistry.addShapelessRecipe(new ItemStack(ExtraMobDrops.hornSandstone), new Object[] { ExtraMobDrops.horn, ExtraMobDrops.horn, sobiohazardous.minestrappolation.extraores.lib.EOItemManager.SandstoneSword...
diff --git a/programs/slammer/gui/UtilitiesPanel.java b/programs/slammer/gui/UtilitiesPanel.java index a6f35d18..c2829e97 100644 --- a/programs/slammer/gui/UtilitiesPanel.java +++ b/programs/slammer/gui/UtilitiesPanel.java @@ -1,620 +1,624 @@ /* This file is in the public domain. */ package slammer.gui; import j...
true
true
public void actionPerformed(java.awt.event.ActionEvent e) { try { String command = e.getActionCommand(); if(command.equals("dest")) { if(fcd.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { destf.setText(fcd.getSelectedFile().getAbsolutePath()); } } else if(command.equals("so...
public void actionPerformed(java.awt.event.ActionEvent e) { try { String command = e.getActionCommand(); if(command.equals("dest")) { if(fcd.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { destf.setText(fcd.getSelectedFile().getAbsolutePath()); } } else if(command.equals("so...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index f355d00..af97190 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,13 +1,13 @@ package controllers; import models.Hotel; import play.data.Form; import play.mvc.*; public class Applica...
true
true
public static Result index() { return ok(views.html.index.render()); }
public static Result index() { return redirect(routes.Hotels.all()); }
diff --git a/net/sf/mpxj/mpp/MPP14Reader.java b/net/sf/mpxj/mpp/MPP14Reader.java index fee7de4..d8c9c5c 100644 --- a/net/sf/mpxj/mpp/MPP14Reader.java +++ b/net/sf/mpxj/mpp/MPP14Reader.java @@ -1,2466 +1,2466 @@ /* * file: MPP14Reader.java * author: Jon Iles * copyright: (c) Packwood Software 2002-2010...
false
true
private void processTaskData() throws IOException { FieldMap fieldMap = new FieldMap14(m_file); fieldMap.createTaskFieldMap(m_projectProps); DirectoryEntry taskDir = (DirectoryEntry) m_projectDir.getEntry("TBkndTask"); VarMeta taskVarMeta = new VarMeta12(new DocumentInputStream(((Document...
private void processTaskData() throws IOException { FieldMap fieldMap = new FieldMap14(m_file); fieldMap.createTaskFieldMap(m_projectProps); DirectoryEntry taskDir = (DirectoryEntry) m_projectDir.getEntry("TBkndTask"); VarMeta taskVarMeta = new VarMeta12(new DocumentInputStream(((Document...
diff --git a/openFaces/source/org/openfaces/renderkit/filter/ComboBoxFilterRenderer.java b/openFaces/source/org/openfaces/renderkit/filter/ComboBoxFilterRenderer.java index 19268bbeb..5ffdaf02a 100644 --- a/openFaces/source/org/openfaces/renderkit/filter/ComboBoxFilterRenderer.java +++ b/openFaces/source/org/openfaces/...
true
true
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { super.encodeBegin(context, component); ComboBoxFilter filter = ((ComboBoxFilter) component); ExpressionFilterCriterion currentCriterion = (ExpressionFilterCriterion) filter.getValue(); Respons...
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { super.encodeBegin(context, component); ComboBoxFilter filter = ((ComboBoxFilter) component); ExpressionFilterCriterion currentCriterion = (ExpressionFilterCriterion) filter.getValue(); Respons...
diff --git a/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java b/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java index 87865743f..40ac4fa63 100644 --- a/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java +++ b/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java...
false
true
public Graph filter(Graph graph) { HierarchicalGraph hgraph = (HierarchicalGraph) graph; String str = pattern.toLowerCase(); List<Node> nodes = new ArrayList<Node>(); for (Node n : hgraph.getNodes()) { if (n.getNodeData().getId().toLowerCase().co...
public Graph filter(Graph graph) { HierarchicalGraph hgraph = (HierarchicalGraph) graph; String str = pattern.toLowerCase(); List<Node> nodes = new ArrayList<Node>(); for (Node n : hgraph.getNodes()) { if (n.getNodeData().getId().toLowerCase().eq...
diff --git a/src/main/java/plugins/WebOfTrust/FCPInterface.java b/src/main/java/plugins/WebOfTrust/FCPInterface.java index 06deccc..c4a8096 100644 --- a/src/main/java/plugins/WebOfTrust/FCPInterface.java +++ b/src/main/java/plugins/WebOfTrust/FCPInterface.java @@ -1,54 +1,55 @@ package plugins.WebOfTrust; import ja...
true
true
public void handle(PluginReplySender prs, SimpleFieldSet sfs, Bucket bucket, int accessType) throws PluginNotFoundException { //System.out.println("Received the following message type: " + sfs.get("Message") + " with identifier: " + prs.getIdentifier()); try { //find class with the name Message @SuppressWar...
public void handle(PluginReplySender prs, SimpleFieldSet sfs, Bucket bucket, int accessType) throws PluginNotFoundException { //System.out.println("Received the following message type: " + sfs.get("Message") + " with identifier: " + prs.getIdentifier()); try { //find class with the name Message @SuppressWar...
diff --git a/src/friskstick/cops/plugin/FriskCommand.java b/src/friskstick/cops/plugin/FriskCommand.java index f7cfc46..aa60ce4 100644 --- a/src/friskstick/cops/plugin/FriskCommand.java +++ b/src/friskstick/cops/plugin/FriskCommand.java @@ -1,148 +1,148 @@ package friskstick.cops.plugin; import org.bukkit.command.C...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player)sender; if(player == null) { sender.sendMessage("You cannot run this command in the console!"); } else { if(commandLabel.equalsIgnoreCase("frisk")) { // If the player typed /frisk ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player)sender; if(player == null) { sender.sendMessage("You cannot run this command in the console!"); } else { if(commandLabel.equalsIgnoreCase("frisk")) { // If the player typed /frisk ...
diff --git a/src/java/com/idega/block/web2/presentation/Accordion.java b/src/java/com/idega/block/web2/presentation/Accordion.java index 3610886..7804b38 100644 --- a/src/java/com/idega/block/web2/presentation/Accordion.java +++ b/src/java/com/idega/block/web2/presentation/Accordion.java @@ -1,247 +1,249 @@ package co...
false
true
public void main(IWContext iwc) { //Page parentPage = PresentationObjectUtil.getParentPage(this); //if (parentPage != null) { try { Web2Business business = (Web2Business) IBOLookup.getServiceInstance(iwc, Web2Business.class); String styleURI = business.getBundleURIToMootoolsStyleFile(); AddResourc...
public void main(IWContext iwc) { //Page parentPage = PresentationObjectUtil.getParentPage(this); //if (parentPage != null) { try { Web2Business business = (Web2Business) IBOLookup.getServiceInstance(iwc, Web2Business.class); String styleURI = business.getBundleURIToMootoolsStyleFile(); AddResourc...
diff --git a/src/main/java/antidot/r2rml/main/R2RML.java b/src/main/java/antidot/r2rml/main/R2RML.java index 1d50682..590a7db 100644 --- a/src/main/java/antidot/r2rml/main/R2RML.java +++ b/src/main/java/antidot/r2rml/main/R2RML.java @@ -1,276 +1,283 @@ /* * Copyright 2011 Antidot opensource@antidot.net * https://...
false
true
public static void main(String[] args) { // Get all options Options options = new Options(); options.addOption(userNameOpt); options.addOption(passwordOpt); options.addOption(URLOpt); options.addOption(driverOpt); options.addOption(dbOpt); options.addOption(forceOpt); options.addOption(nativeOpt); ...
public static void main(String[] args) { // Get all options Options options = new Options(); options.addOption(userNameOpt); options.addOption(passwordOpt); options.addOption(URLOpt); options.addOption(driverOpt); options.addOption(dbOpt); options.addOption(forceOpt); options.addOption(nativeOpt); ...
diff --git a/kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java b/kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java index 8fa6ee56..e1e327d0 100644 --- a/kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java +++ b/kernel-impl/src/main/java/org/sak...
true
true
public String processFormattedText(final String strFromBrowser, StringBuilder errorMessages, Level level, boolean checkForEvilTags, boolean replaceWhitespaceTags, boolean doNotUseLegacySakaiCleaner) { // KNL-1075: bypass the old error system and present our formatted text errors using growl not...
public String processFormattedText(final String strFromBrowser, StringBuilder errorMessages, Level level, boolean checkForEvilTags, boolean replaceWhitespaceTags, boolean doNotUseLegacySakaiCleaner) { // KNL-1075: bypass the old error system and present our formatted text errors using growl not...
diff --git a/src/openblocks/common/tileentity/TileEntityElevator.java b/src/openblocks/common/tileentity/TileEntityElevator.java index c5d5355d..026b9ded 100644 --- a/src/openblocks/common/tileentity/TileEntityElevator.java +++ b/src/openblocks/common/tileentity/TileEntityElevator.java @@ -1,169 +1,169 @@ package open...
true
true
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { Iterator<Entry<String, Integer>> cooldownIter = cooldown.entrySet().iterator(); while (cooldownIter.hasNext()) { Entry<String, Integer> entry = cooldownIter.next(); int less = entry.getValue() - 1; entry.setValue(less)...
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { Iterator<Entry<String, Integer>> cooldownIter = cooldown.entrySet().iterator(); while (cooldownIter.hasNext()) { Entry<String, Integer> entry = cooldownIter.next(); int less = entry.getValue() - 1; entry.setValue(less)...
diff --git a/src/org/GreenTeaScript/GtTypeEnv.java b/src/org/GreenTeaScript/GtTypeEnv.java index 2f02295..bdf3f47 100644 --- a/src/org/GreenTeaScript/GtTypeEnv.java +++ b/src/org/GreenTeaScript/GtTypeEnv.java @@ -1,244 +1,244 @@ // *************************************************************************** // Copyrig...
true
true
public final GtNode TypeCheckSingleNode(GtSyntaxTree ParsedTree, GtNode Node, GtType Type, int TypeCheckPolicy) { LibGreenTea.Assert(Node != null); if(Node.IsErrorNode() || IsFlag(TypeCheckPolicy, NoCheckPolicy)) { return Node; } if(Node.Type.IsUnrevealedType()) { /*local*/GtFunc Func = ParsedTree.NameSp...
public final GtNode TypeCheckSingleNode(GtSyntaxTree ParsedTree, GtNode Node, GtType Type, int TypeCheckPolicy) { LibGreenTea.Assert(Node != null); if(Node.IsErrorNode() || IsFlag(TypeCheckPolicy, NoCheckPolicy)) { return Node; } if(Node.Type.IsUnrevealedType()) { /*local*/GtFunc Func = ParsedTree.NameSp...
diff --git a/src/ilmarse/mobile/activities/OrderDetailActivity.java b/src/ilmarse/mobile/activities/OrderDetailActivity.java index b6e6238..2692c66 100644 --- a/src/ilmarse/mobile/activities/OrderDetailActivity.java +++ b/src/ilmarse/mobile/activities/OrderDetailActivity.java @@ -1,93 +1,94 @@ package ilmarse.mobile.a...
false
true
public void onCreate(Bundle b) { super.onCreate(b); setContentView(R.layout.order_detail); Log.d(TAG, "inside onCreate"); String orderid = this.getIntent().getExtras().getString("catid"); String username = this.getIntent().getExtras().getString("username"); String token = this.getIntent().getExtras().ge...
public void onCreate(Bundle b) { super.onCreate(b); setContentView(R.layout.order_detail); Log.d(TAG, "inside onCreate"); String orderid = this.getIntent().getExtras().getString("order_id"); String username = this.getIntent().getExtras().getString("username"); String token = this.getIntent().getExtras()...
diff --git a/FlexUnit4AntTasks/src/org/flexunit/ant/launcher/commands/player/CustomPlayerCommand.java b/FlexUnit4AntTasks/src/org/flexunit/ant/launcher/commands/player/CustomPlayerCommand.java index 986df43..f3363b5 100644 --- a/FlexUnit4AntTasks/src/org/flexunit/ant/launcher/commands/player/CustomPlayerCommand.java ++...
true
true
public Process launch() throws IOException { prepare(); LoggingUtil.log(proxiedCommand.getCommandLine().describeCommand()); //execute the command directly using Runtime return Runtime.getRuntime().exec( proxiedCommand.getCommandLine().getCommandline(), ...
public Process launch() throws IOException { prepare(); LoggingUtil.log(proxiedCommand.getCommandLine().describeCommand()); //execute the command directly return Execute.launch(proxiedCommand.getProject(), proxiedCommand.getCommandLine().getCommandline(), getProcessEnvironmen...
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/dnd/DataEditDropTargetListner.java b/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/dnd/DataEditDropTargetListner.java index 8e62608b..66a9513d 100644 --- a/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/dnd/DataEditDropTargetListner.java +++ b/Cub...
true
true
protected CreationFactory getFactory(Object template) { // if(template instanceof CustomPageElement) { // return new CustomPageElementCreationFactory(project, (( // CustomPageElement)template).getName()); // } else { return new DataCreationFactory(template); // } }
protected CreationFactory getFactory(Object template) { // if(template instanceof CustomPageElement) { // return new CustomPageElementCreationFactory(project, (( // CustomPageElement)template).getName()); // } else { if (template instanceof DataCreationFactory) { return (DataCreationFactory) template; ...
diff --git a/working-capital/src/module/workingCapital/domain/EmailDigesterUtil.java b/working-capital/src/module/workingCapital/domain/EmailDigesterUtil.java index 2f0e4164..972739cd 100644 --- a/working-capital/src/module/workingCapital/domain/EmailDigesterUtil.java +++ b/working-capital/src/module/workingCapital/dom...
true
true
public static void executeTask() { Language.setLocale(Language.getDefaultLocale()); for (Person person : getPeopleToProcess()) { final User user = person.getUser(); if (user.hasPerson() && user.hasExpenditurePerson()) { final UserView userView = Authenticate.authenticate(user); pt...
public static void executeTask() { Language.setLocale(Language.getDefaultLocale()); for (Person person : getPeopleToProcess()) { final User user = person.getUser(); if (user.hasPerson() && user.hasExpenditurePerson()) { final UserView userView = Authenticate.authenticate(user); pt...
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ContentAssistHelper.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ContentAssistHelper.java index 40e82e32..c7de6f9a 100644 --- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/Cont...
true
true
public static SWTBotEditor checkContentAssistAutoProposal(SWTBotExt bot, String editorTitle, String textToSelect, int selectionOffset, int selectionLength, int textToSelectIndex, String expectedInsertedText) { SWTJBTExt.selectTextInSourcePane(bot, editorTitle, textToSelect, selectionOffset, s...
public static SWTBotEditor checkContentAssistAutoProposal(SWTBotExt bot, String editorTitle, String textToSelect, int selectionOffset, int selectionLength, int textToSelectIndex, String expectedInsertedText) { SWTJBTExt.selectTextInSourcePane(bot, editorTitle, textToSelect, selectionOffset, s...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/EndPointItemProvider.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/EndPointItemProvider.java index 935bac037..c52d...
false
true
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors != null) { itemPropertyDescriptors.clear(); } EndPoint endPoint = (EndPoint) object; super.getPropertyDescriptors(object); //addEndPointNamePropertyDescriptor(object); //addAnonymousPropertyDes...
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors != null) { itemPropertyDescriptors.clear(); } EndPoint endPoint = (EndPoint) object; super.getPropertyDescriptors(object); //addEndPointNamePropertyDescriptor(object); //addAnonymousPropertyDes...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISEnterCommand.java b/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISEnterCommand.java index e93b1d8b8..1d158e113 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISEnterCommand.java +++ b/src/main/java/me/eccentric_nz/T...
true
true
public boolean enterTARDIS(CommandSender sender, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null) { sender.sendMessage(plugin.pluginName + "Only a player can run this command!"); ...
public boolean enterTARDIS(CommandSender sender, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null) { sender.sendMessage(plugin.pluginName + "Only a player can run this command!"); ...
diff --git a/src/org/liberty/android/fantastischmemo/DatabaseHelper.java b/src/org/liberty/android/fantastischmemo/DatabaseHelper.java index c9ed4b94..f8181e86 100644 --- a/src/org/liberty/android/fantastischmemo/DatabaseHelper.java +++ b/src/org/liberty/android/fantastischmemo/DatabaseHelper.java @@ -1,571 +1,571 @@ ...
false
true
public boolean getListItems(int id, int windowSize, List<Item> list){ // These function are related to read db operation // flag = 0 means no condition // flag = 1 means new items, the items user have never seen // flag = 2 means item due, they need to be reviewed. // windowSize = -1 means all items fr...
public boolean getListItems(int id, int windowSize, List<Item> list){ // These function are related to read db operation // flag = 0 means no condition // flag = 1 means new items, the items user have never seen // flag = 2 means item due, they need to be reviewed. // windowSize = -1 means all items fr...
diff --git a/moria/src/no/feide/moria/service/AuthenticationImpl.java b/moria/src/no/feide/moria/service/AuthenticationImpl.java index 0f0862e3..f13116c4 100644 --- a/moria/src/no/feide/moria/service/AuthenticationImpl.java +++ b/moria/src/no/feide/moria/service/AuthenticationImpl.java @@ -1,302 +1,302 @@ /** * Copy...
true
true
public String requestSession(String[] attributes, String prefix, String postfix, boolean denySso) throws RemoteException { log.finer("requestSession(String[], String, String, boolean)"); /* Check if prefix and postfix, together with a possible * session ID, is a valid URL. */ ...
public String requestSession(String[] attributes, String prefix, String postfix, boolean denySso) throws RemoteException { log.finer("requestSession(String[], String, String, boolean)"); /* Check if prefix and postfix, together with a possible * session ID, is a valid URL. */ ...
diff --git a/src/com/soartech/bolt/testing/Script.java b/src/com/soartech/bolt/testing/Script.java index 34fe775..2e85cb2 100644 --- a/src/com/soartech/bolt/testing/Script.java +++ b/src/com/soartech/bolt/testing/Script.java @@ -1,46 +1,48 @@ package com.soartech.bolt.testing; import java.util.LinkedList; public...
true
true
public boolean nextActionRequiresMentorAttention() { ActionType type = actions.peek().getType(); if(type == null) return false; switch(type) { case Mentor: return false; case MentorAction: return true; case AgentAction: return true; default: return false; } }
public boolean nextActionRequiresMentorAttention() { if(actions.peek() == null) return false; ActionType type = actions.peek().getType(); if(type == null) return false; switch(type) { case Mentor: return false; case MentorAction: return true; case AgentAction: return true; default: return false; ...
diff --git a/src/main/java/org/lastbamboo/common/turn/server/allocated/TcpAllocatedTurnServer.java b/src/main/java/org/lastbamboo/common/turn/server/allocated/TcpAllocatedTurnServer.java index 11c682d..789fa8a 100644 --- a/src/main/java/org/lastbamboo/common/turn/server/allocated/TcpAllocatedTurnServer.java +++ b/src/m...
true
true
public void start() { // Note there's no encoder here because we just write raw bytes to // remote hosts. The TURN server is responsible for unwrapping the // raw bytes from the TURN Send Indication messages. // We're receiving raw data on these sockets and packagin...
public void start() { // Note there's no encoder here because we just write raw bytes to // remote hosts. The TURN server is responsible for unwrapping the // raw bytes from the TURN Send Indication messages. // We're receiving raw data on these sockets and packagin...
diff --git a/xcmis-sp-jcr-exo/src/main/java/org/xcmis/sp/jcr/exo/JcrTypeHelper.java b/xcmis-sp-jcr-exo/src/main/java/org/xcmis/sp/jcr/exo/JcrTypeHelper.java index 588116ba..542d0f7c 100644 --- a/xcmis-sp-jcr-exo/src/main/java/org/xcmis/sp/jcr/exo/JcrTypeHelper.java +++ b/xcmis-sp-jcr-exo/src/main/java/org/xcmis/sp/jcr/...
true
true
private static void addPropertyDefinitions(TypeDefinition typeDefinition, NodeType nt) { // Known described in spec. property definitions // for (PropertyDefinition<?> propDef : PropertyDefinitionsMap.getAll(typeDefinition.getBaseId().value())) // typeDefinition.getPropertyDefinitio...
private static void addPropertyDefinitions(TypeDefinition typeDefinition, NodeType nt) { // Known described in spec. property definitions // for (PropertyDefinition<?> propDef : PropertyDefinitionsMap.getAll(typeDefinition.getBaseId().value())) // typeDefinition.getPropertyDefinitio...
diff --git a/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/MouseLocationTaker.java b/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/MouseLocationTaker.java index dcd1cdcf71..a7fa99c5cf 100755 --- a/deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/MouseLocationTake...
false
true
private Point calculatePointerLocation(Point p) { System.out.println("Mouse Tracker:: Image=[" + captureWidth + "," + captureHeight + "] scale=[" + scaleWidth + "," + scaleHeight + "]"); if (captureWidth < scaleWidth || captureHeight < scaleHeight) { int imgWidth = captureWidth; int imgHeight = captureHe...
private Point calculatePointerLocation(Point p) { System.out.println("Mouse Tracker:: Image=[" + captureWidth + "," + captureHeight + "] scale=[" + scaleWidth + "," + scaleHeight + "]"); if (captureWidth < scaleWidth || captureHeight < scaleHeight) { int imgWidth = captureWidth; int imgHeight = captureHe...
diff --git a/src/main/java/org/kari/io/CompactObjectOutputStream.java b/src/main/java/org/kari/io/CompactObjectOutputStream.java index 7fcdce5..ccb7fe0 100644 --- a/src/main/java/org/kari/io/CompactObjectOutputStream.java +++ b/src/main/java/org/kari/io/CompactObjectOutputStream.java @@ -1,153 +1,155 @@ package org.ka...
false
true
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException { final Class<?> cls = desc.forClass(); byte[] encodedSuffix = null; int classId = 0; int code = TYPE_TO_CODE.get(cls); if (code != 0) { // ok fixed type } else { ...
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException { final Class<?> cls = desc.forClass(); int prefixLen = 0; byte[] encodedSuffix = null; int classId = 0; int code = TYPE_TO_CODE.get(cls); if (code != 0) { // ok f...
diff --git a/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/ContextMenuHelper.java b/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/ContextMenuHelper.java index 804b29331..3594b9398 100644 --- a/test-integration-ui/src/main/java/org/apache/directory/...
false
true
public static void clickContextMenu( final AbstractSWTBot<?> bot, final String... texts ) { // show final MenuItem menuItem = UIThreadRunnable.syncExec( new WidgetResult<MenuItem>() { public MenuItem run() { MenuItem menuItem = null; ...
public static void clickContextMenu( final AbstractSWTBot<?> bot, final String... texts ) { final Matcher<?>[] matchers = new Matcher<?>[texts.length]; for ( int i = 0; i < texts.length; i++ ) { matchers[i] = allOf( instanceOf( MenuItem.class ), withMnemonic( texts[i] ) ); ...
diff --git a/Main.java b/Main.java index 45742b5..694b993 100644 --- a/Main.java +++ b/Main.java @@ -1,163 +1,163 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.BufferedReader; import java.io.Print...
true
true
public static void main(String[] args) throws IOException { if (false) { System.out.println("Please enter two input file names"); } else { File fquery = new File(args[0]); File fconfig = new File(args[1]); //File fquery = new File("query.txt"); //File fconfig = new File("config.txt"); /* ...
public static void main(String[] args) throws IOException { if (args.length != 2) { System.out.println("Please enter two input file names"); } else { File fquery = new File(args[0]); File fconfig = new File(args[1]); //File fquery = new File("query.txt"); //File fconfig = new File("config.tx...
diff --git a/src/villebasse/gamelogic/DefaultDeckWithoutCloisters.java b/src/villebasse/gamelogic/DefaultDeckWithoutCloisters.java index d0c3539..acff1e0 100644 --- a/src/villebasse/gamelogic/DefaultDeckWithoutCloisters.java +++ b/src/villebasse/gamelogic/DefaultDeckWithoutCloisters.java @@ -1,66 +1,66 @@ package vill...
false
true
public DefaultDeckWithoutCloisters() { this.pieces = new Vector<Piece>(72); for (int i = 0; i < 5; ++i) this.pieces.add(new PieceDiagonalCity()); for (int i = 0; i < 2; ++i) this.pieces.add(new PieceCityEndWithIntersection()); for (int i = 0; i < 3; ++i) this.pieces.add(new PieceFacingCities()); ...
public DefaultDeckWithoutCloisters() { this.pieces = new Vector<Piece>(72); for (int i = 0; i < 5; ++i) this.pieces.add(new PieceDiagonalCity()); for (int i = 0; i < 3; ++i) this.pieces.add(new PieceCityEndWithIntersection()); for (int i = 0; i < 3; ++i) this.pieces.add(new PieceFacingCities()); ...
diff --git a/src/main/ed/js/JSString.java b/src/main/ed/js/JSString.java index 53e9752ab..50b1b8e48 100644 --- a/src/main/ed/js/JSString.java +++ b/src/main/ed/js/JSString.java @@ -1,746 +1,746 @@ // JSString.java /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute...
true
true
protected void init(){ JS._debugSI( "JSString" , "JSStringCons init 0" ); final JSObject myPrototype = _prototype; if ( ! JS.JNI ){ final StringEncrypter encrypter = new StringEncrypter( "knsd8712@!98sad" ); _prototype.set( "encrypt" , new ...
protected void init(){ JS._debugSI( "JSString" , "JSStringCons init 0" ); final JSObject myPrototype = _prototype; if ( ! JS.JNI ){ final StringEncrypter encrypter = new StringEncrypter( "knsd8712@!98sad" ); _prototype.set( "encrypt" , new ...
diff --git a/cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/util/CDEBrowserParams.java b/cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/util/CDEBrowserParams.java index ff701ff..ce58b78 100644 --- a/cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/util/CDEBrowserParams.java +++ b/cadsrutil/src/java/gov/nih/nci/n...
false
true
private void initAttributesFromProperties(Properties properties) { // read the init parameters from the resource bundle int index = 0; try { xmlDownloadDir = properties.getProperty("XML_DOWNLOAD_DIR"); index++; xmlPaginationFl...
private void initAttributesFromProperties(Properties properties) { // read the init parameters from the resource bundle int index = 0; try { xmlDownloadDir = properties.getProperty("XML_DOWNLOAD_DIR"); index++; xmlPaginationFl...
diff --git a/src/com/aetrion/flickr/photos/PhotosInterface.java b/src/com/aetrion/flickr/photos/PhotosInterface.java index d36658d..f9916d4 100644 --- a/src/com/aetrion/flickr/photos/PhotosInterface.java +++ b/src/com/aetrion/flickr/photos/PhotosInterface.java @@ -1,1284 +1,1285 @@ /* * Copyright (c) 2005 Aetrion LL...
true
true
public Photo getInfo(String photoId, String secret) throws IOException, SAXException, FlickrException { List parameters = new ArrayList(); parameters.add(new Parameter("method", METHOD_GET_INFO)); parameters.add(new Parameter("api_key", apiKey)); parameters.add(new Parameter("photo_...
public Photo getInfo(String photoId, String secret) throws IOException, SAXException, FlickrException { List parameters = new ArrayList(); parameters.add(new Parameter("method", METHOD_GET_INFO)); parameters.add(new Parameter("api_key", apiKey)); parameters.add(new Parameter("photo_...
diff --git a/app/controllers/DimensionDiagramController.java b/app/controllers/DimensionDiagramController.java index 23b6c2b..cf02121 100644 --- a/app/controllers/DimensionDiagramController.java +++ b/app/controllers/DimensionDiagramController.java @@ -1,44 +1,53 @@ /* * Copyright (C) 2012 by Eero Laukkanen, Risto V...
false
true
public static void show(String URLHash) { RCACase rcaCase = RCACase.getRCACase(URLHash); notFoundIfNull(rcaCase); rcaCase = PublicRCACaseController.checkIfCurrentUserHasRightsForRCACase(rcaCase.id); ClassificationRelationMap relations = ClassificationRelationMap.fromCase(rcaCase); HashMap<Long, Integer> clas...
public static void show(String URLHash) { RCACase rcaCase = RCACase.getRCACase(URLHash); notFoundIfNull(rcaCase); rcaCase = PublicRCACaseController.checkIfCurrentUserHasRightsForRCACase(rcaCase.id); notFoundIfNull(rcaCase); ClassificationRelationMap relations = ClassificationRelationMap.fromCase(rcaCase); ...
diff --git a/src/com/android/settings/wifi/AccessPoint.java b/src/com/android/settings/wifi/AccessPoint.java index f6581a5fa..20146eb27 100644 --- a/src/com/android/settings/wifi/AccessPoint.java +++ b/src/com/android/settings/wifi/AccessPoint.java @@ -1,398 +1,398 @@ /* * Copyright (C) 2010 The Android Open Source ...
false
true
private void refresh() { setTitle(ssid); Context context = getContext(); if (mState != null) { // This is the active connection setSummary(Summary.get(context, mState)); } else if (mRssi == Integer.MAX_VALUE) { // Wifi out of range setSummary(context.getStrin...
private void refresh() { setTitle(ssid); Context context = getContext(); if (mConfig != null && mConfig.status == WifiConfiguration.Status.DISABLED) { switch (mConfig.disableReason) { case WifiConfiguration.DISABLED_AUTH_FAILURE: setSummary(co...
diff --git a/src/Model/trunk/SEG/src/model/LoadXMLFile.java b/src/Model/trunk/SEG/src/model/LoadXMLFile.java index a43792c..49ca720 100644 --- a/src/Model/trunk/SEG/src/model/LoadXMLFile.java +++ b/src/Model/trunk/SEG/src/model/LoadXMLFile.java @@ -1,106 +1,106 @@ package model; import javax.swing.JFileChooser; im...
false
true
public Airport loadFile() throws Exception { rways = new ArrayList<Runway>(); JFileChooser fc = new JFileChooser(); XMLFileFilter ff = new XMLFileFilter(); fc.setFileFilter(ff); int returnVal = fc.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { fXmlFile = fc.getSelectedFile();...
public Airport loadFile() throws Exception { rways = new ArrayList<Runway>(); JFileChooser fc = new JFileChooser(); XMLFileFilter ff = new XMLFileFilter(); fc.setFileFilter(ff); int returnVal = fc.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { fXmlFile = fc.getSelectedFile();...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/RouteData.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/RouteData.java index cea262ae..113cf99d 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/RouteData.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/RouteData.java @@ -1,858 +1,857 @@ /** * This file is part of OS...
false
true
private void addConnection(RouteNode from, RouteNode to, int dist, Way w, byte bs, byte be) { /** travel modes with no barrier detected */ int noBarrierTravelModes = 0xFFFFFFFF; byte againstDirectionTravelModes = 0; // create an array of routing times with an entry for each travel mode int times[] = ...
private void addConnection(RouteNode from, RouteNode to, int dist, Way w, byte bs, byte be) { /** travel modes with no barrier detected */ int noBarrierTravelModes = 0xFFFFFFFF; byte againstDirectionTravelModes = 0; // create an array of routing times with an entry for each travel mode int times[] = ...
diff --git a/testSrc/main/MainTest2.java b/testSrc/main/MainTest2.java index 338114e..f745ae7 100644 --- a/testSrc/main/MainTest2.java +++ b/testSrc/main/MainTest2.java @@ -1,22 +1,22 @@ package main; import org.testng.annotations.Test; import java.util.Random; @Test public class MainTest2 extends BaseTestCa...
true
true
public void test_failure() { fail(); // comment }
public void test_failure() { fail(); // comment2 }
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/logging/LoggingView.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/logging/LoggingView.java index 5842743f..6a534c4f 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/logging/LoggingView.java +++ b/gui/sr...
true
true
public Widget createWidget() { deck = new DeckPanel(); deck.setStyleName("fill-layout"); TabLayoutPanel loggersTabs = new TabLayoutPanel(25, Style.Unit.PX); loggersTabs.addStyleName("default-tabpanel"); loggersTabs.add(rootLoggerSubview.asWidget(), rootLoggerSubview.getEnt...
public Widget createWidget() { deck = new DeckPanel(); deck.setStyleName("fill-layout"); TabLayoutPanel loggersTabs = new TabLayoutPanel(25, Style.Unit.PX); loggersTabs.addStyleName("default-tabpanel"); loggersTabs.add(rootLoggerSubview.asWidget(), rootLoggerSubview.getEnt...
diff --git a/src/com/voet/datasetcreator/DatasetCreatorView.java b/src/com/voet/datasetcreator/DatasetCreatorView.java index e9ddf1f..5051e6f 100755 --- a/src/com/voet/datasetcreator/DatasetCreatorView.java +++ b/src/com/voet/datasetcreator/DatasetCreatorView.java @@ -1,485 +1,486 @@ /* * DatasetCreatorView.java *...
false
true
private void initComponents() { mainPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); cboDrivers = new javax.swing.JComboBox(); pnlConnInfo = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); txtHost = new javax.swing.JTextField(); ...
private void initComponents() { mainPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); cboDrivers = new javax.swing.JComboBox(); pnlConnInfo = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); txtHost = new javax.swing.JTextField(); ...
diff --git a/src/gov/nist/javax/sip/stack/IOHandler.java b/src/gov/nist/javax/sip/stack/IOHandler.java index 76373e63..d1341d52 100755 --- a/src/gov/nist/javax/sip/stack/IOHandler.java +++ b/src/gov/nist/javax/sip/stack/IOHandler.java @@ -1,304 +1,305 @@ /* * Conditions Of Use * * This software was developed b...
true
true
public Socket sendBytes(InetAddress senderAddress, InetAddress receiverAddress, int contactPort, String transport, byte[] bytes, boolean retry) throws IOException { int retry_count = 0; int max_retry = retry ? 2 : 1; // Server uses TCP transport. TCP client sockets are cached int length = bytes.length; ...
public Socket sendBytes(InetAddress senderAddress, InetAddress receiverAddress, int contactPort, String transport, byte[] bytes, boolean retry) throws IOException { int retry_count = 0; int max_retry = retry ? 2 : 1; // Server uses TCP transport. TCP client sockets are cached int length = bytes.length; ...
diff --git a/src/net/mayateck/OldEdenCore/EconomyHandler.java b/src/net/mayateck/OldEdenCore/EconomyHandler.java index d524cdc..c94709e 100644 --- a/src/net/mayateck/OldEdenCore/EconomyHandler.java +++ b/src/net/mayateck/OldEdenCore/EconomyHandler.java @@ -1,142 +1,147 @@ package net.mayateck.OldEdenCore; import or...
false
true
public boolean onCommand(CommandSender s, Command cmd, String l, String[] args) { String name = s.getName(); if (cmd.getName().equalsIgnoreCase("money")){ if (!(s instanceof Player)){ s.sendMessage("The economy commands are player-executible only."); } else { if (args.length==0){ int funds = plu...
public boolean onCommand(CommandSender s, Command cmd, String l, String[] args) { String name = s.getName(); if (cmd.getName().equalsIgnoreCase("money")){ if (!(s instanceof Player)){ s.sendMessage("The economy commands are player-executible only."); } else { if (args.length==0){ if (s.hasPermis...
diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java index 22af396ea..5000e8ac3 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java +++ b/openjpa-jdbc/...
false
true
public AbstractDB2Dictionary() { numericTypeName = "DOUBLE"; bitTypeName = "SMALLINT"; smallintTypeName = "SMALLINT"; tinyintTypeName = "SMALLINT"; longVarbinaryTypeName = "BLOB"; varbinaryTypeName = "BLOB"; toUpperCaseFunction = "UPPER(CAST({0} AS VARCHAR(10...
public AbstractDB2Dictionary() { numericTypeName = "DOUBLE"; bitTypeName = "SMALLINT"; smallintTypeName = "SMALLINT"; tinyintTypeName = "SMALLINT"; longVarbinaryTypeName = "BLOB"; varbinaryTypeName = "BLOB"; // DB2-based databases have restrictions on having ...
diff --git a/src/main/java/de/bbe_consulting/mavento/MagentoDeployMojo.java b/src/main/java/de/bbe_consulting/mavento/MagentoDeployMojo.java index 68d0ca7..f23286d 100644 --- a/src/main/java/de/bbe_consulting/mavento/MagentoDeployMojo.java +++ b/src/main/java/de/bbe_consulting/mavento/MagentoDeployMojo.java @@ -1,89 +1...
false
true
public void execute() throws MojoExecutionException, MojoFailureException { File buildArtifact = new File(project.getBuild().getDirectory()+"/"+project.getArtifactId()+"-"+project.getVersion()+".zip"); if ( buildArtifact.exists() ) { if (magentoDeployType.equals("local")) { getLog().info("Checking f...
public void execute() throws MojoExecutionException, MojoFailureException { File buildArtifact = new File(project.getBuild().getDirectory()+"/"+project.getArtifactId()+"-"+project.getVersion()+".zip"); if ( buildArtifact.exists() ) { if (magentoDeployType.equals("local")) { getLog().info("Checking f...
diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index b9634d2a6..ce8e82cd9 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ ...
false
true
private void displaySnark(PrintWriter out, Snark snark, String uri, int row, long stats[], boolean showPeers, boolean isDegraded, boolean noThinsp, boolean showDebug, boolean statsOnly, String stParam) throws IOException { // stats long upl...
private void displaySnark(PrintWriter out, Snark snark, String uri, int row, long stats[], boolean showPeers, boolean isDegraded, boolean noThinsp, boolean showDebug, boolean statsOnly, String stParam) throws IOException { // stats long upl...
diff --git a/src/main/java/com/onarandombox/multiverseinventories/ShareHandler.java b/src/main/java/com/onarandombox/multiverseinventories/ShareHandler.java index 62a9415..a0f20db 100644 --- a/src/main/java/com/onarandombox/multiverseinventories/ShareHandler.java +++ b/src/main/java/com/onarandombox/multiverseinventori...
false
true
public void handleSharing() { Logging.finer("=== " + this.getPlayer().getName() + " traveling from world: " + this.getFromWorld().getName() + " to " + "world: " + this.getToWorld().getName() + " ==="); // Grab the player from the world they're coming from to save their stuff to every...
public void handleSharing() { Logging.finer("=== " + this.getPlayer().getName() + " traveling from world: " + this.getFromWorld().getName() + " to " + "world: " + this.getToWorld().getName() + " ==="); // Grab the player from the world they're coming from to save their stuff to every...
diff --git a/src/java/net/sf/kraken/protocols/xmpp/XMPPSession.java b/src/java/net/sf/kraken/protocols/xmpp/XMPPSession.java index d056f1c..a493b8e 100644 --- a/src/java/net/sf/kraken/protocols/xmpp/XMPPSession.java +++ b/src/java/net/sf/kraken/protocols/xmpp/XMPPSession.java @@ -1,684 +1,684 @@ /** * $Revision$ *...
false
true
public void logIn(PresenceType presenceType, String verboseStatus) { final org.jivesoftware.smack.packet.Presence presence = new org.jivesoftware.smack.packet.Presence(org.jivesoftware.smack.packet.Presence.Type.available); if (JiveGlobals.getBooleanProperty("plugin.gateway."+getTransport().getType(...
public void logIn(PresenceType presenceType, String verboseStatus) { final org.jivesoftware.smack.packet.Presence presence = new org.jivesoftware.smack.packet.Presence(org.jivesoftware.smack.packet.Presence.Type.available); if (JiveGlobals.getBooleanProperty("plugin.gateway."+getTransport().getType(...
diff --git a/src/test/java/mork/gui/GuiTest.java b/src/test/java/mork/gui/GuiTest.java index d1f0aeb..9349411 100644 --- a/src/test/java/mork/gui/GuiTest.java +++ b/src/test/java/mork/gui/GuiTest.java @@ -1,16 +1,22 @@ package mork.gui; import junit.framework.TestCase; public class GuiTest extends TestCase { ...
true
true
public void testFindThunderbirdProfile() throws Exception { ProfileLocator locator = new ProfileLocator(); String result = locator.locateFirstThunderbirdAddressbookPath(); assertNotNull(result); //TODO this test does not pass on linux; result is similar to /home/user/.mozilla-thunderbird/abc1234.default asse...
public void testFindThunderbirdProfile() throws Exception { ProfileLocator locator = new ProfileLocator(); String result = locator.locateFirstThunderbirdAddressbookPath(); assertNotNull(result); // TODO this test does not pass on linux; result is similar to // /home/user/.mozilla-thunderbird/abc1234.default ...
diff --git a/src/org/eclipse/core/internal/localstore/SafeChunkyInputStream.java b/src/org/eclipse/core/internal/localstore/SafeChunkyInputStream.java index f0e5c811..d96c7143 100644 --- a/src/org/eclipse/core/internal/localstore/SafeChunkyInputStream.java +++ b/src/org/eclipse/core/internal/localstore/SafeChunkyInputS...
false
true
protected void buildChunk() throws IOException { if (nextByteInBuffer + ILocalStoreConstants.CHUNK_DELIMITER_SIZE > bufferLength) shiftAndFillBuffer(); int end = find(ILocalStoreConstants.END_CHUNK, nextByteInBuffer, bufferLength, true); if (end != -1) { accumulate(buffer, nextByteInBuffer, end); nextBy...
protected void buildChunk() throws IOException { //read buffer loads of data until an entire chunk is accumulated while (true) { if (nextByteInBuffer + ILocalStoreConstants.CHUNK_DELIMITER_SIZE > bufferLength) shiftAndFillBuffer(); int end = find(ILocalStoreConstants.END_CHUNK, nextByteInBuffer, bufferLe...
diff --git a/core/src/main/java/com/zaubersoftware/gnip4j/api/support/http/AbstractRemoteResourceProvider.java b/core/src/main/java/com/zaubersoftware/gnip4j/api/support/http/AbstractRemoteResourceProvider.java index 4cac93b..ab1a21b 100644 --- a/core/src/main/java/com/zaubersoftware/gnip4j/api/support/http/AbstractRem...
true
true
public final void validateStatusLine(final URI uri, final int statusCode, final String reason) { if (statusCode >= 200 || statusCode <= 299) { // nothing to do } else if (statusCode == 401) { throw new AuthenticationGnipException(reason); } else { throw n...
public final void validateStatusLine(final URI uri, final int statusCode, final String reason) { if (statusCode >= 200 && statusCode <= 299) { // nothing to do } else if (statusCode == 401) { throw new AuthenticationGnipException(reason); } else { throw n...
diff --git a/servlet/src/test/java/io/undertow/servlet/test/streams/ContentLengthCloseFlushServlet.java b/servlet/src/test/java/io/undertow/servlet/test/streams/ContentLengthCloseFlushServlet.java index ce852feb9..2ed3bc546 100644 --- a/servlet/src/test/java/io/undertow/servlet/test/streams/ContentLengthCloseFlushServl...
true
true
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { if (completed) { resp.getWriter().write("OK"); } else { resp.setContentLength(1); ServletOutputStream stream = resp.getOutputStream(); ...
protected synchronized void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { if (completed) { resp.getWriter().write("OK"); } else { resp.setContentLength(1); ServletOutputStream stream = resp.getOutputStre...
diff --git a/webmacro/src/org/webmacro/resource/CachingProvider.java b/webmacro/src/org/webmacro/resource/CachingProvider.java index 5415b37c..1f165251 100755 --- a/webmacro/src/org/webmacro/resource/CachingProvider.java +++ b/webmacro/src/org/webmacro/resource/CachingProvider.java @@ -1,125 +1,125 @@ package org.we...
true
true
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) ...
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) ...
diff --git a/tool/src/java/org/sakaiproject/profile2/tool/pages/MyPreferences.java b/tool/src/java/org/sakaiproject/profile2/tool/pages/MyPreferences.java index ce57c3e0..3e57573d 100644 --- a/tool/src/java/org/sakaiproject/profile2/tool/pages/MyPreferences.java +++ b/tool/src/java/org/sakaiproject/profile2/tool/pages/...
true
true
public MyPreferences() { log.debug("MyPreferences()"); disableLink(preferencesLink); //get current user final String userUuid = sakaiProxy.getCurrentUserId(); //get the prefs record for this user from the database, or a default if none exists yet profilePreferences = preferencesLogic.getPreferenc...
public MyPreferences() { log.debug("MyPreferences()"); disableLink(preferencesLink); //get current user final String userUuid = sakaiProxy.getCurrentUserId(); //get the prefs record for this user from the database, or a default if none exists yet profilePreferences = preferencesLogic.getPreferenc...
diff --git a/cosmo/src/test/unit/java/org/osaf/cosmo/service/impl/StandardFreeBusyQueryProcessorTest.java b/cosmo/src/test/unit/java/org/osaf/cosmo/service/impl/StandardFreeBusyQueryProcessorTest.java index 856fcf5ae..2f49c409b 100644 --- a/cosmo/src/test/unit/java/org/osaf/cosmo/service/impl/StandardFreeBusyQueryProce...
true
true
protected void onSetUpInTransaction() throws Exception { // TODO Auto-generated method stub super.onSetUpInTransaction(); queryProcessor = new StandardFreeBusyQueryProcessor(); queryProcessor.setCalendarDao(calendarDao); CollectionItem calendar = generateCal...
protected void onSetUpInTransaction() throws Exception { // TODO Auto-generated method stub super.onSetUpInTransaction(); queryProcessor = new StandardFreeBusyQueryProcessor(); queryProcessor.setCalendarDao(calendarDao); CollectionItem calendar = generateCal...
diff --git a/pgtest3/source-impl/de/unisiegen/tpml/graphics/outline/binding/OutlineUnbound.java b/pgtest3/source-impl/de/unisiegen/tpml/graphics/outline/binding/OutlineUnbound.java index 509665c7..64c64a11 100644 --- a/pgtest3/source-impl/de/unisiegen/tpml/graphics/outline/binding/OutlineUnbound.java +++ b/pgtest3/sour...
false
true
private final void find ( ArrayList < String > pBounded , Expression pExpression ) { for ( Method method : this.getClass ( ).getDeclaredMethods ( ) ) { if ( method.getName ( ).equals ( FIND + pExpression.getClass ( ).getSimpleName ( ) ) ) { try { Object ...
private final void find ( ArrayList < String > pBounded , Expression pExpression ) { for ( Method method : this.getClass ( ).getDeclaredMethods ( ) ) { if ( method.getName ( ).equals ( FIND + pExpression.getClass ( ).getSimpleName ( ) ) ) { try { Object ...
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/graph/DumpGraphTask.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/graph/DumpGraphTask.java index f3240c5c5..de7594ce9 100644 --- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/graph/DumpGraphTask.java +++ b/lenskit-eval/src/main/...
true
true
public File perform() throws TaskExecutionException { if (output == null) { logger.error("no output file specified"); throw new IllegalStateException("no graph output file specified"); } LenskitConfiguration config = algorithm.getConfig().copy(); // FIXME This...
public File perform() throws TaskExecutionException { if (output == null) { logger.error("no output file specified"); throw new IllegalStateException("no graph output file specified"); } LenskitConfiguration config = algorithm.getConfig().copy(); // FIXME This...
diff --git a/tools/org/newdawn/slick/tools/peditor/ParticleGame.java b/tools/org/newdawn/slick/tools/peditor/ParticleGame.java index a580d35..8ad2857 100644 --- a/tools/org/newdawn/slick/tools/peditor/ParticleGame.java +++ b/tools/org/newdawn/slick/tools/peditor/ParticleGame.java @@ -1,306 +1,306 @@ package org.newdaw...
true
true
public void render(GameContainer container, Graphics g) throws SlickException { try { if (backgroundImage != null) { if (background == null) { background = new Image( new FileInputStream(backgroundImage), backgroundImage.getAbsolutePath(), false); } } } catch (Exception e) { ...
public void render(GameContainer container, Graphics g) throws SlickException { try { if (backgroundImage != null) { if (background == null) { background = new Image( new FileInputStream(backgroundImage), backgroundImage.getAbsolutePath(), false); } } } catch (Exception e) { ...
diff --git a/javasrc/src/org/ccnx/ccn/impl/repo/RepositoryInterestHandler.java b/javasrc/src/org/ccnx/ccn/impl/repo/RepositoryInterestHandler.java index a3919cfad..96f633f10 100644 --- a/javasrc/src/org/ccnx/ccn/impl/repo/RepositoryInterestHandler.java +++ b/javasrc/src/org/ccnx/ccn/impl/repo/RepositoryInterestHandler....
false
true
private void startWriteChecked(Interest interest) { if (isDuplicateRequest(interest)) return; if (isWriteSuspended(interest)) return; try { if (Log.isLoggable(Log.FAC_REPO, Level.FINER)) Log.finer(Log.FAC_REPO, "Repo checked write request: {0}", interest.name()); if (!RepositoryOperations.verifyChe...
private void startWriteChecked(Interest interest) { if (isDuplicateRequest(interest)) return; if (isWriteSuspended(interest)) return; try { if (Log.isLoggable(Log.FAC_REPO, Level.FINER)) Log.finer(Log.FAC_REPO, "Repo checked write request: {0}", interest.name()); if (!RepositoryOperations.verifyChe...
diff --git a/client/gui/MapRadar.java b/client/gui/MapRadar.java index f26ec34..6b7f9e4 100644 --- a/client/gui/MapRadar.java +++ b/client/gui/MapRadar.java @@ -1,150 +1,150 @@ package client.gui; import java.awt.Color; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import common.*; import clie...
true
true
public void draw(Graphics2D g, int windowWidth, int windowHeight) { if (map == null) return; // Draw background g.setColor(RADAR_BACKGROUND_COLOR); g.fill(getFixedBounds(windowWidth, windowHeight)); // Draw walls g.setColor(RADAR_COLOR); final int offsetX = getFixedX(windowWidth), offsetY = get...
public void draw(Graphics2D g, int windowWidth, int windowHeight) { if (map == null) return; // Draw background g.setColor(RADAR_BACKGROUND_COLOR); g.fill(getFixedBounds(windowWidth, windowHeight)); // Draw walls g.setColor(RADAR_COLOR); final int offsetX = getFixedX(windowWidth), offsetY = get...
diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/BasicErrorController.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/BasicErrorController.java index 0c64466d06..4cda5f4d77 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate...
true
true
public Map<String, Object> error(HttpServletRequest request) { Map<String, Object> map = new LinkedHashMap<String, Object>(); map.put("timestamp", new Date()); try { Throwable error = (Throwable) request .getAttribute("javax.servlet.error.exception"); Object obj = request.getAttribute("javax.servlet.e...
public Map<String, Object> error(HttpServletRequest request) { Map<String, Object> map = new LinkedHashMap<String, Object>(); map.put("timestamp", new Date()); try { Throwable error = (Throwable) request .getAttribute("javax.servlet.error.exception"); Object obj = request.getAttribute("javax.servlet.e...
diff --git a/cloud/cloud-utils/src/main/java/org/openinfinity/cloud/util/credentials/ProviderCredentialsImpl.java b/cloud/cloud-utils/src/main/java/org/openinfinity/cloud/util/credentials/ProviderCredentialsImpl.java index 2588b1a0..a90b3c27 100644 --- a/cloud/cloud-utils/src/main/java/org/openinfinity/cloud/util/crede...
true
true
public ProviderCredentialsImpl(@Value("${accesskeyid}") String accessKey, @Value("${secretkey}") String secretKey) { super(accessKey, secretKey); }
public ProviderCredentialsImpl(@Value("${eucaaccesskeyid}") String accessKey, @Value("${eucasecretkey}") String secretKey) { super(accessKey, secretKey); }
diff --git a/main/Board.java b/main/Board.java index 89f5108..e13378e 100644 --- a/main/Board.java +++ b/main/Board.java @@ -1,92 +1,92 @@ package main; /** * @author boaz, September 2010 * @version 1.0 */ public class Board { /** * Board game - private array of chars */ private char[] locate; ...
true
true
public boolean isWin() { if ( (locate[0] == locate[1] && locate[1] == locate[2]) || //0-1-2 (first row) (locate[3] == locate[4] && locate[4] == locate[5]) || //3-4-5 (second row) (locate[6] == locate[7] && locate[7] == locate[8]) || //6-7-8 (third row) (locate[0] == locate[3] && locate[3] == locate[6]) ...
public boolean isWin() { if ( (locate[0] == locate[1] && locate[1] == locate[2]) || //0-1-2 (first row) (locate[3] == locate[4] && locate[4] == locate[5]) || //3-4-5 (second row) (locate[6] == locate[7] && locate[7] == locate[8]) || //6-7-8 (third row) (locate[0] == locate[3] && locate[3] == locate[6]) ...
diff --git a/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java b/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java index 3b8cb20f1..608c261d4 100644 --- a/src/test/java/org/atlasapi/remotesite/channel4/C4AtoZAtomAdapterTest.java +++ b/src/test/java/org/atlasapi/remotesite...
true
true
public void testPerformsGetCorrespondingGivenUriAndPassesResultToExtractor() throws Exception { checking(new Expectations() {{ one(itemClient).get("http://api.channel4.com/programmes/atoz/a.atom"); will(returnValue(atoza.build())); one(itemClient).get("http://api.channel4.com/programmes/atoz/a/page-2.atom")...
public void testPerformsGetCorrespondingGivenUriAndPassesResultToExtractor() throws Exception { checking(new Expectations() {{ one(itemClient).get("http://api.channel4.com/programmes/atoz/a.atom"); will(returnValue(atoza.build())); one(itemClient).get("http://api.channel4.com/programmes/atoz/a/page-2.atom")...
diff --git a/src/com/arantius/tivocommander/Upcoming.java b/src/com/arantius/tivocommander/Upcoming.java index 3fcc642..1d930dc 100644 --- a/src/com/arantius/tivocommander/Upcoming.java +++ b/src/com/arantius/tivocommander/Upcoming.java @@ -1,178 +1,178 @@ /* TiVo Commander allows control of a TiVo Premiere device. ...
true
true
public void onResponse(MindRpcResponse response) { setProgressBarIndeterminateVisibility(false); findViewById(android.R.id.empty).setVisibility(View.VISIBLE); mShows = response.getBody().path("offer"); List<HashMap<String, Object>> listItems = new ArrayLis...
public void onResponse(MindRpcResponse response) { setProgressBarIndeterminateVisibility(false); findViewById(android.R.id.empty).setVisibility(View.VISIBLE); mShows = response.getBody().path("offer"); List<HashMap<String, Object>> listItems = new ArrayLis...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointMarkerUpdater.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointMarkerUpdater.java index 61f98efd7..1d027badc 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointMarkerUpdat...
true
true
public boolean updateMarker(IMarker marker, IDocument document, Position position) { if(position.isDeleted()) { return false; } ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(document.get().toCharArray()); CompilationUnit unit = (CompilationUnit) parser.createAST(null); if(unit != nu...
public boolean updateMarker(IMarker marker, IDocument document, Position position) { if(position.isDeleted()) { return false; } ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(document.get().toCharArray()); CompilationUnit unit = (CompilationUnit) parser.createAST(null); if(unit != nu...
diff --git a/net/sourceforge/frcsimulator/Client.java b/net/sourceforge/frcsimulator/Client.java index 13080e9..f7f7adc 100644 --- a/net/sourceforge/frcsimulator/Client.java +++ b/net/sourceforge/frcsimulator/Client.java @@ -1,119 +1,119 @@ /* * To change this template, choose Tools | Templates * and open the temp...
true
true
public static void main(String[] args) { Arguments arguments = new Arguments(args); boolean gui = !GraphicsEnvironment.isHeadless(); // Process arguments if(arguments.get("gui") != null || arguments.get("g") != null) gui=true; if(arguments.get("cli") != null || arguments.get("c") != null...
public static void main(String[] args) { Arguments arguments = new Arguments(args); boolean gui = !GraphicsEnvironment.isHeadless(); // Process arguments if(arguments.get("gui") != null || arguments.get("g") != null) gui=true; if(arguments.get("cli") != null || arguments.get("c") != null...
diff --git a/PortParser/thcsw002Parser.java b/PortParser/thcsw002Parser.java index 9ee13f4..67c3194 100644 --- a/PortParser/thcsw002Parser.java +++ b/PortParser/thcsw002Parser.java @@ -1,335 +1,346 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.*; import java.util.ArrayLi...
false
true
public void parser(String fileName, String identifiers) { // Open the file in question if (fileName == null || identifiers == null) throw new IllegalArgumentException("Can't have null args."); ArrayList <IdTagObjs> idTags = new ArrayList<IdTagObjs>(); idTags.add(new IdTagObjs("Port")); // add the port identif...
public void parser(String fileName, String identifiers) { // Open the file in question if (fileName == null || identifiers == null) throw new IllegalArgumentException("Can't have null args."); ArrayList <IdTagObjs> idTags = new ArrayList<IdTagObjs>(); idTags.add(new IdTagObjs("Port")); // add the port identif...
diff --git a/measurement-point/measurement-scheduler/src/main/java/net/es/mp/scheduler/jobs/OWAMPJob.java b/measurement-point/measurement-scheduler/src/main/java/net/es/mp/scheduler/jobs/OWAMPJob.java index 36c08df..17ed50b 100644 --- a/measurement-point/measurement-scheduler/src/main/java/net/es/mp/scheduler/jobs/OWAM...
true
true
protected void handleOutput(BufferedReader stdout, BufferedReader stderr, Schedule schedule) throws IOException { OWAMPSchedule owampSchedule = (OWAMPSchedule) schedule; //Init measurement OWAMPMeasurement measurement = this.buildMeasurement(owampSchedule); //Build resu...
protected void handleOutput(BufferedReader stdout, BufferedReader stderr, Schedule schedule) throws IOException { OWAMPSchedule owampSchedule = (OWAMPSchedule) schedule; //Init measurement OWAMPMeasurement measurement = this.buildMeasurement(owampSchedule); //Build resu...
diff --git a/edu/wisc/ssec/mcidasv/data/GeoLatLonSelection.java b/edu/wisc/ssec/mcidasv/data/GeoLatLonSelection.java index 86e01e00e..be3671a62 100644 --- a/edu/wisc/ssec/mcidasv/data/GeoLatLonSelection.java +++ b/edu/wisc/ssec/mcidasv/data/GeoLatLonSelection.java @@ -1,1580 +1,1581 @@ /* * $Id$ * * This file is...
true
true
protected JComponent doMakeContents() { String[] propArray = getAdvancedProps(); String[] labelArray = getAdvancedLabels(); Insets dfltGridSpacing = new Insets(4, 0, 4, 0); String dfltLblSpacing = " "; List allComps = new ArrayList(); for (int propI...
protected JComponent doMakeContents() { String[] propArray = getAdvancedProps(); String[] labelArray = getAdvancedLabels(); Insets dfltGridSpacing = new Insets(4, 0, 4, 0); String dfltLblSpacing = " "; List allComps = new ArrayList(); for (int propI...
diff --git a/src/org/omegat/util/Preferences.java b/src/org/omegat/util/Preferences.java index 273aac28..d3b8e6d6 100644 --- a/src/org/omegat/util/Preferences.java +++ b/src/org/omegat/util/Preferences.java @@ -1,556 +1,556 @@ /************************************************************************** OmegaT - Compu...
false
true
private static void doLoad() { try { // mark as loaded - if the load fails, there's no use // trying again later m_loaded = true; XMLStreamReader xml = new XMLStreamReader(); xml.killEmptyBlocks(); xml.setStream(new File(StaticUtils.ge...
private static void doLoad() { try { // mark as loaded - if the load fails, there's no use // trying again later m_loaded = true; XMLStreamReader xml = new XMLStreamReader(); xml.killEmptyBlocks(); xml.setStream(new File(StaticUtils.ge...
diff --git a/Java/src/com/sample/onpremise/AddMerchandise.java b/Java/src/com/sample/onpremise/AddMerchandise.java index 6d653f0..65654f0 100755 --- a/Java/src/com/sample/onpremise/AddMerchandise.java +++ b/Java/src/com/sample/onpremise/AddMerchandise.java @@ -1,173 +1,173 @@ package com.sample.onpremise; import ja...
false
true
public static void main(String [] args){ Properties props = new Properties(); try { props.load(new FileInputStream("AddMerchandise.properties")); String username = props.getProperty("username"); String passsword = props.getProperty("password"); ...
public static void main(String [] args){ Properties props = new Properties(); try { props.load(new FileInputStream("AddMerchandise.properties")); String username = props.getProperty("username"); String passsword = props.getProperty("password"); ...
diff --git a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java index 5bf50e5..4db48cd 100644 --- a/dexlib/src/main/java/org/jf/dexlib/CodeItem.java +++ b/dexlib/src/main/java/org/jf/dexlib/CodeItem.java @@ -1,1039 +1,1038 @@ /* * [The "BSD licence"] * Copyright (c)...
true
true
private void replaceInstructionAtOffset(int offset, Instruction replacementInstruction) { Instruction originalInstruction = null; int[] originalInstructionOffsets = new int[instructions.length+1]; SparseIntArray originalSwitchOffsetByOriginalSwitchDataOffset = new SparseIntArray(); ...
private void replaceInstructionAtOffset(int offset, Instruction replacementInstruction) { Instruction originalInstruction = null; int[] originalInstructionOffsets = new int[instructions.length+1]; SparseIntArray originalSwitchOffsetByOriginalSwitchDataOffset = new SparseIntArray(); ...
diff --git a/servicewrapper/servicewrapper-service-ncbiblast/src/uk/org/mygrid/cagrid/servicewrapper/service/ncbiblast/invoker/NCBIBlastJobUtils.java b/servicewrapper/servicewrapper-service-ncbiblast/src/uk/org/mygrid/cagrid/servicewrapper/service/ncbiblast/invoker/NCBIBlastJobUtils.java index c84fb9f..aed7708 100644 -...
true
true
public void updateOutputs(NCBIBlastJobResource job) throws RemoteException { if (!job.getJobStatus().equals(JobStatus.done) || job.getNCBIBlastOutput() != null) { // Too early/late return; } String jobID = job.getJobID(); if (jobID == null || jobID.equals("")) { // Too early, no job id set yet ...
public void updateOutputs(NCBIBlastJobResource job) throws RemoteException { if (!job.getJobStatus().equals(JobStatus.done) || job.getNCBIBlastOutput() != null) { // Too early/late return; } String jobID = job.getJobID(); if (jobID == null || jobID.equals("")) { // Too early, no job id set yet ...
diff --git a/accountvalidator/java/src/hx/bankcheck/accountvalidator/impl/ChecksumB6.java b/accountvalidator/java/src/hx/bankcheck/accountvalidator/impl/ChecksumB6.java index 59c5dfe..0af2593 100644 --- a/accountvalidator/java/src/hx/bankcheck/accountvalidator/impl/ChecksumB6.java +++ b/accountvalidator/java/src/hx/ban...
false
true
public boolean validate(int[] accountNumber, int[] bankNumber) throws ValidationException { if (accountNumber[0] == 0) { return new Checksum53(WEIGHTS_ALTERANTIVE2).validate(accountNumber, bankNumber); } else { return new Checksum20(WEIGHTS_ALTERANTIVE1).validate(accountNumber); } }
public boolean validate(int[] accountNumber, int[] bankNumber) throws ValidationException { if (accountNumber[0] == 0) { setAlternative(1); return new Checksum53(WEIGHTS_ALTERANTIVE2).validate(accountNumber, bankNumber); } else { setAlternative(0); return new Checksum20(WEIGHTS_ALTERANTIVE1).va...
diff --git a/src/main/org/jboss/jmx/adaptor/snmp/agent/AttributeTableMapper.java b/src/main/org/jboss/jmx/adaptor/snmp/agent/AttributeTableMapper.java index 771d26b..4c05233 100644 --- a/src/main/org/jboss/jmx/adaptor/snmp/agent/AttributeTableMapper.java +++ b/src/main/org/jboss/jmx/adaptor/snmp/agent/AttributeTableMap...
false
true
public OID getNextTable(OID oid) { OID currentOID = oid; // means that the oid is the one from the table itself boolean isRowEntry = false; if(tables.contains(oid)) { currentOID = oid.append(1); } // if(tableRowEntrys.contains(currentOID)) { // currentOID = oid.append(1); // isRowEntry = true; // } ...
public OID getNextTable(OID oid) { OID currentOID = oid; // means that the oid is the one from the table itself boolean isRowEntry = false; if(tables.contains(oid)) { currentOID = oid.append(1); } // if(tableRowEntrys.contains(currentOID)) { // currentOID = oid.append(1); // isRowEntry = true; // } ...
diff --git a/src/main/java/net/pms/newgui/TranscodingTab.java b/src/main/java/net/pms/newgui/TranscodingTab.java index 683d29ba8..153554da2 100644 --- a/src/main/java/net/pms/newgui/TranscodingTab.java +++ b/src/main/java/net/pms/newgui/TranscodingTab.java @@ -1,955 +1,955 @@ /* * PS3 Media Server, for streaming any...
true
true
private JComponent buildSubtitlesSetupPanel() { String colSpec = FormLayoutUtil.getColSpec("left:pref, 3dlu, p:grow, 3dlu, right:p:grow, 3dlu, p:grow, 3dlu, right:p:grow,3dlu, p:grow, 3dlu, right:p:grow,3dlu, pref:grow", orientation); FormLayout layout = new FormLayout(colSpec, "$lgap, 7*(pref, 3dlu), pref"); fi...
private JComponent buildSubtitlesSetupPanel() { String colSpec = FormLayoutUtil.getColSpec("left:pref, 3dlu, p:grow, 3dlu, right:p:grow, 3dlu, p:grow, 3dlu, right:p:grow,3dlu, p:grow, 3dlu, right:p:grow,3dlu, pref:grow", orientation); FormLayout layout = new FormLayout(colSpec, "$lgap, 7*(pref, 3dlu), pref"); fi...
diff --git a/src/parchment/render/ReportRenderEngine.java b/src/parchment/render/ReportRenderEngine.java index d88937e..d9e31d5 100644 --- a/src/parchment/render/ReportRenderEngine.java +++ b/src/parchment/render/ReportRenderEngine.java @@ -1,22 +1,22 @@ /* * ReportRenderEngine.java * * Copyright (c) 2009 Operat...
true
true
public ReportRenderEngine(PaperSize paper, Series series) { super(PaperSize.A4, series); }
public ReportRenderEngine(PaperSize paper, Series series) { super(paper, series); }
diff --git a/SilkSpawners.java b/SilkSpawners.java index 01519a6..9130fb8 100644 --- a/SilkSpawners.java +++ b/SilkSpawners.java @@ -1,634 +1,635 @@ /* Copyright (c) 2012, Mushroom Hostage All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided...
true
true
private void loadConfig() { getConfig().options().copyDefaults(true); saveConfig(); creature2Egg = new ConcurrentHashMap<CreatureType,ItemStack>(); eid2Creature = new ConcurrentHashMap<Short,CreatureType>(); creature2Eid = new ConcurrentHashMap<CreatureType,Short>(); ...
private void loadConfig() { getConfig().options().copyDefaults(true); saveConfig(); reloadConfig(); creature2Egg = new ConcurrentHashMap<CreatureType,ItemStack>(); eid2Creature = new ConcurrentHashMap<Short,CreatureType>(); creature2Eid = new ConcurrentHashMap<Creatu...
diff --git a/docdoku-cli-android/src/com/docdoku/android/plm/network/HttpGetTask.java b/docdoku-cli-android/src/com/docdoku/android/plm/network/HttpGetTask.java index 869f4fe2f..f9302d79b 100644 --- a/docdoku-cli-android/src/com/docdoku/android/plm/network/HttpGetTask.java +++ b/docdoku-cli-android/src/com/docdoku/andr...
true
true
protected String doInBackground(String... strings) { String result = ERROR_UNKNOWN; try { URL url = createURL(strings[0]); Log.i("com.docdoku.android.plm.client","Sending HttpGet request to url: " + url); HttpURLConnection conn = (HttpURLConnection) url.openConne...
protected String doInBackground(String... strings) { String result = ERROR_UNKNOWN; try { URL url = createURL(strings[0]); Log.i("com.docdoku.android.plm.client","Sending HttpGet request to url: " + url); HttpURLConnection conn = (HttpURLConnection) url.openConne...
diff --git a/src/java/net/bbm485/db/DBManager.java b/src/java/net/bbm485/db/DBManager.java index 411b679..42fc95a 100644 --- a/src/java/net/bbm485/db/DBManager.java +++ b/src/java/net/bbm485/db/DBManager.java @@ -1,151 +1,153 @@ package net.bbm485.db; import java.net.UnknownHostException; import java.util.ArrayLis...
false
true
public User getUser(String userId) throws UserNotFoundException { try { DBObject obj = new BasicDBObject("_id", new ObjectId(userId)); DBObject userObj = collection.findOne(obj); User user = convertDBObject2User(userObj); return user; } catch (...
public User getUser(String userId) throws UserNotFoundException { try { DBObject obj = new BasicDBObject("_id", new ObjectId(userId)); DBObject userObj = collection.findOne(obj); User user = convertDBObject2User(userObj); if (user == null) thro...
diff --git a/src/view/PokeSearchPanel.java b/src/view/PokeSearchPanel.java index 37736df..555ddd8 100644 --- a/src/view/PokeSearchPanel.java +++ b/src/view/PokeSearchPanel.java @@ -1,138 +1,138 @@ /** * */ package view; import java.awt.BorderLayout; import java.awt.event.FocusEvent; import java.awt.event.Fo...
true
true
private void initActions() { this.jta.addFocusListener(new FocusListener() { @Override public void focusGained(FocusEvent e) { if(jta.getText().equals(DEFAULT)) { jta.setText(""); } } @Override public void focusLost(FocusEvent e) { if(jta.getText().equals("")) { jta.setText(DEFAU...
private void initActions() { this.jta.addFocusListener(new FocusListener() { @Override public void focusGained(FocusEvent e) { if(jta.getText().equals(DEFAULT)) { jta.setText(""); } } @Override public void focusLost(FocusEvent e) { if(jta.getText().equals("")) { jta.setText(DEFAU...