Skip to content

Commit ee02438

Browse files
Update interface-in-class.md
1 parent aa3c786 commit ee02438

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/checks/interface-in-class.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
# code pal for ABAP
2-
31
[code pal for ABAP](../../README.md) > [Documentation](../check_documentation.md) > [Interface in Class Check](interface-in-class.md)
42

53
## Interface Missing Check
64

75
### What is the Intent of the Check?
86

9-
The "Interface Missing" (is interface in class?) check searches for public methods without an interface.
7+
This check searches for classes having public methods without an interface.
108

119
### How does the check work?
1210

1311
Since every class having at least one public method should implement an interface, this check searches for public methods within a class without having an associated interface (being implemented).
1412

15-
### Which attributes can be maintained?
16-
17-
![Attributes](./imgs/interface_missing.png)
18-
1913
### How to solve the issue?
2014

2115
Make sure to implement an interface for the public methods. Even though this seems to be unnecessary in some cases, having an interface will easily allow mocking data in the future.
2216

2317
### What to do in case of exception?
2418

25-
You can suppress Code Inspector findings generated by this check using the pseudo comment `"#EC INTF_IN_CLASS`.
26-
The pseudo comment must be placed right after the `PUBLIC SECTION` statement.
19+
In exceptional cases, you can suppress this finding by using the pseudo comment `"#EC INTF_IN_CLASS` which should be placed right after the `PUBLIC SECTION` statement:
2720

2821
```abap
2922
CLASS class_name DEFINITION.

0 commit comments

Comments
 (0)