Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
f5cfd41e
Commit
f5cfd41e
authored
May 17, 2018
by
Sarah Grebing
Browse files
Bugfix in SaveCommandhandling
parent
58789c46
Pipeline
#21802
passed with stages
in 3 minutes and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/InterpreterBuilder.java
View file @
f5cfd41e
...
...
@@ -225,7 +225,8 @@ public class InterpreterBuilder {
public
InterpreterBuilder
setProblemPath
(
File
path
){
Map
<
String
,
CommandHandler
<
KeyData
>>
builtinsnew
=
this
.
bich
.
getBuiltins
();
builtinsnew
.
put
(
"save"
,
new
SaveCommand
(
path
));
SaveCommand
sc
=
new
SaveCommand
(
path
);
builtinsnew
.
put
(
SaveCommand
.
SAVE_COMMAND_NAME
,
sc
);
this
.
bich
.
setBuiltins
(
builtinsnew
);
return
this
;
...
...
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/funchdl/BuiltInCommandHandler.java
View file @
f5cfd41e
...
...
@@ -18,12 +18,10 @@ public class BuiltInCommandHandler implements CommandHandler<KeyData> {
@Getter
@Setter
private
Map
<
String
,
CommandHandler
<
KeyData
>>
builtins
;
@Getter
@Setter
private
SaveCommand
sc
;
public
BuiltInCommandHandler
()
{
builtins
=
new
HashMap
<>();
builtins
.
put
(
"save"
,
sc
);
}
...
...
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/funchdl/SaveCommand.java
View file @
f5cfd41e
...
...
@@ -15,7 +15,7 @@ import java.io.File;
import
java.io.IOException
;
public
class
SaveCommand
implements
CommandHandler
<
KeyData
>
{
p
rivate
static
final
String
SAVE_COMMAND_NAME
=
"#save"
;
p
ublic
static
final
String
SAVE_COMMAND_NAME
=
"#save"
;
private
static
Logger
logger
=
LogManager
.
getLogger
(
SaveCommand
.
class
);
private
static
Logger
consoleLogger
=
LogManager
.
getLogger
(
"console"
);
...
...
Write
Preview
Markdown
is supported
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