Skip to content

Commit 9adadfc

Browse files
committed
remove deps, added alias comment
1 parent a701a76 commit 9adadfc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

wpilibc/src/main/native/include/frc/Solenoid.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ class Solenoid : public wpi::Sendable, public wpi::SendableHelper<Solenoid> {
5656

5757
/**
5858
* Read the current value of the solenoid.
59+
* This is an alias for the IsOn method.
5960
*
6061
* @return The current value of the solenoid.
6162
*/
62-
[[deprecated("Use isOn or isOff methods instead.")]]
6363
bool Get() const;
6464

6565
/**
6666
* Returns true if the solenoid is on.
67+
* This is an alias for the Get method.
6768
*
6869
* @return true if the solenoid is on.
6970
*

wpilibj/src/main/java/edu/wpi/first/wpilibj/Solenoid.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ public void set(boolean on) {
8080

8181
/**
8282
* Read the current value of the solenoid.
83-
*
83+
* This is an alias for the isOn method.
84+
*
8485
* @return True if the solenoid output is on or false if the solenoid output is off.
85-
* @deprecated Use isOn or isOff instead
8686
*/
87-
@Deprecated
8887
public boolean get() {
8988
int currentAll = m_module.getSolenoids();
9089
return (currentAll & m_mask) != 0;
9190
}
9291

9392
/**
9493
* Returns true if the solenoid is on.
94+
* This is an alias for the get method.
9595
*
9696
* @return true if the solenoid is on.
9797
*/

0 commit comments

Comments
 (0)