Skip to content
Snippets Groups Projects
Verified Commit b6d3caea authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Disable unnecessary warnings

parent 8614d0f2
No related branches found
No related tags found
No related merge requests found
Pipeline #595 passed
......@@ -16,5 +16,6 @@ import java.util.EnumSet
* Function to obtain an empty bitfield for a certain flag type
* @return empty bitfield
*/
@Suppress("unused")
inline fun <reified T> Flags<*, T>.none(): EnumSet<T>
where T : Flag<*>, T : Enum<T> = EnumSet.noneOf(T::class.java)
......@@ -17,6 +17,7 @@ import kotlin.experimental.and
* Construct a bitfield out of discrete flags
* @return bitfield
*/
@Suppress("unused")
inline fun <reified T> Flags<*, T>.of(vararg values: T): EnumSet<T>
where T : Flag<*>, T : Enum<T> = values.toEnumSet()
......@@ -24,6 +25,7 @@ inline fun <reified T> Flags<*, T>.of(vararg values: T): EnumSet<T>
* Construct a bitfield out of a collection of flags
* @return bitfield
*/
@Suppress("unused")
inline fun <reified T> Flags<*, T>.of(values: Collection<T>): EnumSet<T>
where T : Flag<*>, T : Enum<T> = values.toEnumSet()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment