SCRIPT Run java package replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:43 -05:00
committed by Peter Johnson
parent 12823a003d
commit f0a3c64121
1590 changed files with 8469 additions and 8469 deletions

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
import static java.util.Objects.requireNonNull;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
/** Image pixel format. */
public enum PixelFormat {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
import java.nio.ByteBuffer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
/**
* Options for where the timestamp an {@link RawFrame} was captured at can be measured relative to.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
/** Marker interface to indicate a class is serializable using WPI serialization methods. */
public interface WPISerializable {}

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util;
import java.io.IOException;
import java.nio.ByteBuffer;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.cleanup;
package org.wpilib.util.cleanup;
import edu.wpi.first.util.ErrorMessages;
import org.wpilib.util.ErrorMessages;
import java.util.ArrayDeque;
import java.util.Deque;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.cleanup;
package org.wpilib.util.cleanup;
import java.lang.reflect.Field;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.cleanup;
package org.wpilib.util.cleanup;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.cleanup;
import java.lang.ref.Cleaner;
import java.lang.ref.Cleaner.Cleanable;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.concurrent;
package org.wpilib.util.concurrent;
import edu.wpi.first.util.WPIUtilJNI;
import org.wpilib.util.WPIUtilJNI;
/**
* An atomic signaling event for synchronization.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.concurrent;
import java.util.ArrayList;
import java.util.List;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.concurrent;
package org.wpilib.util.concurrent;
import edu.wpi.first.util.WPIUtilJNI;
import org.wpilib.util.WPIUtilJNI;
/**
* A semaphore for synchronization.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.container;
/**
* This is a simple circular buffer so we don't need to "bucket brigade" copy old values.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.container;
import java.util.Arrays;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.function;
package org.wpilib.util.function;
/**
* Represents an operation that accepts a single boolean-valued argument and returns no result. This

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.function;
package org.wpilib.util.function;
/**
* Represents an operation that accepts a single float-valued argument and returns no result. This

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.function;
package org.wpilib.util.function;
/**
* Represents a supplier of float-valued results.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.protobuf;
package org.wpilib.util.protobuf;
import java.lang.reflect.Array;
import java.util.function.BiConsumer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.protobuf;
package org.wpilib.util.protobuf;
import java.io.IOException;
import java.nio.ByteBuffer;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.protobuf;
package org.wpilib.util.protobuf;
import edu.wpi.first.util.WPISerializable;
import org.wpilib.util.WPISerializable;
/**
* Marker interface to indicate a class is serializable using Protobuf serialization.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.runtime;
import java.io.BufferedReader;
import java.io.IOException;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.runtime;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.runtime;
/** Exception thrown due to a bad MSVC Runtime. */
public class MsvcRuntimeException extends RuntimeException {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.runtime;
import java.io.File;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util;
package org.wpilib.util.runtime;
import java.io.IOException;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.sendable;
package org.wpilib.util.sendable;
/** The base interface for objects that can be sent over the network. */
@SuppressWarnings("PMD.ImplicitFunctionalInterface")

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.sendable;
package org.wpilib.util.sendable;
import edu.wpi.first.util.function.BooleanConsumer;
import edu.wpi.first.util.function.FloatConsumer;
import edu.wpi.first.util.function.FloatSupplier;
import org.wpilib.util.function.BooleanConsumer;
import org.wpilib.util.function.FloatConsumer;
import org.wpilib.util.function.FloatSupplier;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import java.util.function.DoubleConsumer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.sendable;
package org.wpilib.util.sendable;
import java.lang.ref.WeakReference;
import java.util.Arrays;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
/** Exception thrown when encountering a bad schema. */
public class BadSchemaException extends Exception {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.lang.reflect.Array;
import java.nio.ByteBuffer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.lang.reflect.Array;
import java.nio.ByteBuffer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.util.ArrayList;
import java.util.HashMap;

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import edu.wpi.first.util.struct.parser.ParseException;
import edu.wpi.first.util.struct.parser.ParsedDeclaration;
import edu.wpi.first.util.struct.parser.ParsedSchema;
import edu.wpi.first.util.struct.parser.Parser;
import org.wpilib.util.struct.parser.ParseException;
import org.wpilib.util.struct.parser.ParsedDeclaration;
import org.wpilib.util.struct.parser.ParsedSchema;
import org.wpilib.util.struct.parser.Parser;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.util.Optional;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.util.Map;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
/** Known data types for raw struct dynamic fields (see StructFieldDescriptor). */
public enum StructFieldType {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct;
package org.wpilib.util.struct;
import edu.wpi.first.util.WPISerializable;
import org.wpilib.util.WPISerializable;
/**
* Marker interface to indicate a class is serializable using Struct serialization.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
/** Raw struct schema lexer. */
public class Lexer {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
/** Exception for parsing errors. */
public class ParseException extends Exception {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
import java.util.Map;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
import java.util.ArrayList;
import java.util.List;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
import java.util.HashMap;
import java.util.Map;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.util.struct.parser;
package org.wpilib.util.struct.parser;
/** A lexed raw struct schema token. */
public enum TokenKind {