Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
332ec5ec
Commit
332ec5ec
authored
7 years ago
by
Egor Ushakov
Browse files
Options
Download
Email Patches
Plain Diff
cleanup: unneeded call
parent
9416c7ac
Branches unavailable
Tags unavailable
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
java/debugger/impl/src/com/intellij/debugger/engine/JavaValueModifier.java
+1
-1
...l/src/com/intellij/debugger/engine/JavaValueModifier.java
java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/BlockStatementEvaluator.java
+2
-16
...engine/evaluation/expression/BlockStatementEvaluator.java
java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/TryEvaluator.java
+2
-16
...j/debugger/engine/evaluation/expression/TryEvaluator.java
with
5 additions
and
33 deletions
+5
-33
java/debugger/impl/src/com/intellij/debugger/engine/JavaValueModifier.java
+
1
-
1
View file @
332ec5ec
...
...
@@ -106,7 +106,7 @@ public abstract class JavaValueModifier extends XValueModifier {
if
(
value
instanceof
DoubleValue
)
{
double
dValue
=
((
DoubleValue
)
value
).
doubleValue
();
if
(
varType
instanceof
FloatType
&&
Float
.
MIN_VALUE
<=
dValue
&&
dValue
<=
Float
.
MAX_VALUE
){
value
=
context
.
getSuspendContext
().
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOf
((
float
)
dValue
);
value
=
context
.
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOf
((
float
)
dValue
);
}
}
if
(
value
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/BlockStatementEvaluator.java
+
2
-
16
View file @
332ec5ec
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package
com.intellij.debugger.engine.evaluation.expression
;
import
com.intellij.debugger.engine.evaluation.EvaluateException
;
...
...
@@ -30,7 +16,7 @@ public class BlockStatementEvaluator implements Evaluator {
@Override
public
Object
evaluate
(
EvaluationContextImpl
context
)
throws
EvaluateException
{
Object
result
=
context
.
getSuspendContext
().
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOfVoid
();
Object
result
=
context
.
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOfVoid
();
for
(
Evaluator
statement
:
myStatements
)
{
result
=
statement
.
evaluate
(
context
);
}
...
...
This diff is collapsed.
Click to expand it.
java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/TryEvaluator.java
+
2
-
16
View file @
332ec5ec
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package
com.intellij.debugger.engine.evaluation.expression
;
import
com.intellij.debugger.engine.DebuggerUtils
;
...
...
@@ -42,7 +28,7 @@ public class TryEvaluator implements Evaluator {
@Override
public
Object
evaluate
(
EvaluationContextImpl
context
)
throws
EvaluateException
{
Object
result
=
context
.
getSuspendContext
().
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOfVoid
();
Object
result
=
context
.
getDebugProcess
().
getVirtualMachineProxy
().
mirrorOfVoid
();
try
{
result
=
myBodyEvaluator
.
evaluate
(
context
);
}
catch
(
EvaluateException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help