Skip to content

Commit 90065a7

Browse files
Remove @throws tags
Remove @throws tags because those exceptions are not declared, and because we don't want to declare them; doing so would be inconsistent within the repository. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Leandru Martin <122942864+leandrumartin@users.noreply.github.com>
1 parent e69f033 commit 90065a7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pi4micronaut-utils/src/main/java/com/opensourcewithslu/outputdevices/ServoMotorHelper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.opensourcewithslu.outputdevices;
22

3-
import com.pi4j.io.exception.IOException;
43
import com.pi4j.io.pwm.Pwm;
54
import org.slf4j.Logger;
65
import org.slf4j.LoggerFactory;
@@ -34,7 +33,6 @@ public ServoMotorHelper(Pwm servoMotor) {
3433
* Enables the servo motor by starting PWM output at 0% duty cycle and the
3534
* configured servo frequency.
3635
*
37-
* @throws IOException if the underlying PWM implementation cannot start the signal
3836
*/
3937
public void enable() {
4038
log.info("Enabling servo motor");
@@ -45,7 +43,6 @@ public void enable() {
4543
/**
4644
* Disables the servo motor and stops PWM output.
4745
*
48-
* @throws IOException if the underlying PWM implementation cannot stop the signal
4946
*/
5047
public void disable() {
5148
log.info("Disabling servo motor");
@@ -72,7 +69,6 @@ float map(float value) {
7269
* </p>
7370
*
7471
* @param angle the target angle for the servo motor, between 0 and 180 degrees.
75-
* @throws IOException if the underlying PWM implementation cannot update the signal
7672
*/
7773
public void setAngle(int angle) {
7874
if (!isEnabled) {

0 commit comments

Comments
 (0)