1 | package com.jsql.view.swing.sql.text; | |
2 | ||
3 | import javax.swing.*; | |
4 | import java.util.function.Consumer; | |
5 | import java.util.function.Supplier; | |
6 | ||
7 | public class JTextPaneLexer extends JTextPane implements JTextPaneObjectMethod { | |
8 | | |
9 | private final transient Consumer<String> consumerSetter; | |
10 | private final transient Supplier<String> supplierGetter; | |
11 | | |
12 | public JTextPaneLexer( | |
13 | Consumer<String> consumer, | |
14 | Supplier<String> supplier | |
15 | ) { | |
16 | this.consumerSetter = consumer; | |
17 | this.supplierGetter = supplier; | |
18 | } | |
19 | ||
20 | public void setAttribute() { | |
21 |
1
1. setAttribute : removed call to java/util/function/Consumer::accept → NO_COVERAGE |
this.consumerSetter.accept(this.getText()); |
22 | } | |
23 | ||
24 | public Supplier<String> getSupplierGetter() { | |
25 |
1
1. getSupplierGetter : replaced return value with null for com/jsql/view/swing/sql/text/JTextPaneLexer::getSupplierGetter → NO_COVERAGE |
return this.supplierGetter; |
26 | } | |
27 | } | |
Mutations | ||
21 |
1.1 |
|
25 |
1.1 |