Skip to content

Commit

Permalink
fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
crissNb committed Jan 15, 2024
1 parent f5ffb49 commit 09052af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

public class InspectorContractItem extends VBox implements InspectorElement<VBox> {
/**
* Constructor for the State contract item
* Constructor for the State contract item.
*
* @param actionManager
* @param stateViewModel
* @param contractViewModel
* @param actionManager Action manager
* @param stateViewModel State view model
* @param contractViewModel Contract view model
*/
public InspectorContractItem(ActionManager actionManager, StateViewModel stateViewModel, ContractViewModel contractViewModel) {
// Contract fields:
Expand Down Expand Up @@ -51,11 +51,11 @@ public InspectorContractItem(ActionManager actionManager, StateViewModel stateVi
}

/**
* Constructor for the Region contract item
* Constructor for the Region contract item.
*
* @param actionManager
* @param contractViewModel
* @param invariant
* @param actionManager Action manager
* @param contractViewModel Contract view model
* @param invariant Invariant
*/
public InspectorContractItem(ActionManager actionManager, ContractViewModel contractViewModel, StringProperty invariant) {
HBox contractPreCondition = new HBox();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/gecko/viewmodel/GeckoViewModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public GeckoViewModel(GeckoModel geckoModel) {

public void switchEditor(SystemViewModel nextSystemViewModel, boolean isAutomatonEditor) {
openedEditorsProperty.stream()
.filter(editorViewModel -> (editorViewModel.getCurrentSystem() == nextSystemViewModel &&
editorViewModel.isAutomatonEditor() == isAutomatonEditor))
.filter(editorViewModel -> (editorViewModel.getCurrentSystem() == nextSystemViewModel
&& editorViewModel.isAutomatonEditor() == isAutomatonEditor))
.findFirst()
.ifPresentOrElse(currentEditorProperty::setValue, () -> {
EditorViewModel editorViewModel = viewModelFactory.createEditorViewModel(nextSystemViewModel, isAutomatonEditor);
Expand Down

0 comments on commit 09052af

Please sign in to comment.