Skip to content

Fix warnings about "type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'" #765

Fix warnings about "type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'"

Fix warnings about "type 'K' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'" #765

Triggered via pull request January 19, 2025 11:45
Status Success
Total duration 6m 47s
Artifacts

build_and_test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: src/UglyToad.PdfPig.Fonts/GlyphList.cs#L99
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
build: src/UglyToad.PdfPig.Fonts/GlyphList.cs#L99
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
build: src/UglyToad.PdfPig/Content/Page.cs#L128
'Page.ExperimentalAccess' is obsolete: 'Use methods and properties directly at Page level.'
build: src/UglyToad.PdfPig/Content/Page.cs#L128
'Page.Experimental' is obsolete: 'Use methods and properties directly at Page level.'
build: src/UglyToad.PdfPig.Fonts/GlyphList.cs#L99
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
build: src/UglyToad.PdfPig/Content/Page.cs#L128
'Page.ExperimentalAccess' is obsolete: 'Use methods and properties directly at Page level.'
build: src/UglyToad.PdfPig/Content/Page.cs#L128
'Page.Experimental' is obsolete: 'Use methods and properties directly at Page level.'
build: src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs#L74
Nullability of reference types in type of parameter 'x' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).
build: src/UglyToad.PdfPig/Writer/PdfDedupStreamWriter.cs#L74
Nullability of reference types in type of parameter 'y' of 'bool FNVByteComparison.Equals(byte[] x, byte[] y)' doesn't match implicitly implemented member 'bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y)' (possibly because of nullability attributes).
build: src/UglyToad.PdfPig/Writer/Xmp/XmpWriter.cs#L249
Possible null reference argument for parameter 'other' in 'XDocument.XDocument(XDocument other)'.