Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Import Warnings #55

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

Nicholas-Stokes
Copy link
Contributor

Removed import warnings from 50+ files.

Why are there so many?
@SomeNerd-Jack
Copy link
Contributor

Consolidate your imports, please. EX:

import frc.robot.commands.Agitator.runAgitator;
import frc.robot.commands.Agitator.stopAgitator;

would become
import frc.robot.commands.Agitator.*;

Comment on lines +3 to +4
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.ConditionalCommand;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be changed to import edu.wpi.first.wpilibj2.command.*;?

@@ -1,12 +1,14 @@
package frc.robot.commands.auto.commandgroups.common.movement;

import edu.wpi.first.wpilibj2.command.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this work instead of just the two classes being imported?

Comment on lines +9 to +12
import frc.robot.commands.auto.AutoDriveWithJoystickInput;
import frc.robot.commands.auto.AutoRotateWithJoystickInput;
import frc.robot.commands.auto.AutoRotateWithVision;
import frc.robot.commands.auto.resetDriveEncoders;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why uncondense it from import frc.robot.commands.auto.*;?

@mfrancis33
Copy link
Contributor

There seems to be a lot of import statements that could be condensed into, say, import edu.wpi.first.wpilibj2.command.*; instead of two specific classes being imported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants